← All problemsSign in

Maximum Streak

The Chef's programming platform is working on a feature to display the streak of a coder. On a particular day, if any submission is made by the coder, he is marked active on that day. You are given the history of user for $N$ days in the form of a string of $0$s and $1$s, where $1$ denotes being active on that day. The streak is defined as the maximum consecutive days on which he was activ

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