← All problemsSign in

Chefs Strings

Our Chef is fond of stings. He is so lost in his strings that he keeps a box full of his favorite strings.A favorite string is a string which has only 2 characters 'a' and 'b'(both lower case,quotes are for representation purpose only). Also chef's strings are special as they have ratio of a's to b's equal to 4:5. Chef's foe Franko dislikes chef's strings.So one afternoon he altered the ratio's o

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start