← All problemsSign in

Help Utkarsh

Utkarsh is a cool guy and had fun throughout the year. Now his exams are approaching and he hasn't studied for them at all! Utkarsh has to read several chapters for his exams, but he is smart and realized that he doesn't actually need to read each and every one of them thoroughly. Several chapters share the same content, so he can skip some parts of some chapters to save time. Each chapter is a

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