← All problemsSign in

Help the man

Chef lives in neighbourhood which is made up of small blocks connected via roads. Each block has a specific identifying value such that neighbours of any given node is 2*i+1 and 2*i+2 where i is the value of the current block. Given chef lives in block 0, a zombie apocalypse starts at a block, Z, Chef needs to get to block, D asap in order to escape the neighbourhood. With each step chef takes, zo

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