Guess Your Way Out
Filed under Directi
The question
In a perfect binary tree of height h with leaves numbered 1 to 2^h from left to right, an exit is located at leaf n. A player navigates using an alternating L/R command string; determine the path and steps taken to find the exit node.
No write-up yet. Related questions below have one.
Related Directi questions
Collected from public candidate posts and coding forums. Updated Nov 2026.