← All problemsSign in

DDLJ Reprise

Problem description Raj, the love of Simran's life is waiting at an airport exactly 'N' steps away from her. Simran is running to meet the love of her life. She takes 1, 2 or 3 steps per second . She can also take some rest to catch a breath, i.e 0 steps per second. But the path of love is not always easy and she might fall a few times while running. If she falls more than 'M' times, she would be

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