← All problemsSign in

Saraguru and his coding practice

saraguru50 loves coding more than anything else. He loves problem solving. He spends more time with his laptop than with his girl friend. saraguru50 will be happy only if he practices coding for at least K consecutive days. Given the coding schedule of saraguru50 for N days. Each day is represented either as 1 ( meaning he practiced coding on that day ) or 0 ( meaning he went on outing with his gi

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