← All problemsSign in

Apun Hi Bhagwan Hai !

"Kabhi kabhi lagta hai ki apun hi bhagwan hai!" (*meaning "Sometimes I feel like I'm the God!"*) chants an overconfident underworld gangster Ganesh Gaitonde. But inspector Sartaj Singh doesn't seem to be much impressed by him. Instead he told Gaitonde to prove his supremacy by solving a programming question instead of just saying things from nowhere. The question stated by Sartaj Singh is: There

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