← All problemsSign in

The game of childhood

Raju and Gopi are best friends. They have spent their entire childhood in the beautiful town of Timarkhantola. They read in same college. The town has a unique architecture with total N houses. The college where they study is a very big and beautiful building having address = 1. Rest of the houses in the town have some unique address, (say A), are connected by roads and there is always a unique p

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