Alice and the Rainforest
CodeChefOpen on judge ↗
Alice is lost in a binary tree in the rain forests. The binary tree in this discussion is a complete binary tree. A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible. Alice knows that the binary tree has N nodes. Luckily a monkey in the same tree informs her that she is, in the worst case, X steps
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.
Sign in to chat with the tutor and save your progress.
Sign in to start