← All problemsSign in

Bring Maximum Gold

Now Priyanshu is watching $Money \ Heist$ and in that Professor wants to collect gold as much as possible from bank of spain. Berlin has given a map to Professor which shows a Tree like structure having $N$ halls of Bank of Spain. In that map he has also shown where guards will be standing. Right now Tokyo and Denver are in a hall 1 (which is also a root node) and Gold is in last halls (Leaf Nodes

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