← All problemsSign in

Nikhil and his love letters

Nikhil's girlfriend seldom writes him letter and she has a habit of including lots of spaces between words. Nikhil being intelligent guy, observed a special pattern in the letters, that everytime she is angry on him, the total number of spaces in the letter is less than a certain value $L$ else, she is really missing him and wants to go on a date with him right now. So, as soon as he receives a l

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