← All problemsSign in

Chef, Drive and Fuel

Today, You and $Chef$ went for a drive on a straight road with no cars on the highway early in the morning. But to Chef’s disappointment the highway is not so smooth, it has some potholes and moreover the highway has a fixed length, after that it is $broken$. The highway is straight and is given in the form of a binary string. Binary string is a string consisting of only 1s and 0s. 1s representing

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