← All problemsSign in

Babata And The Bubblegum

Once in a village called Baskerville, there was an ancient tree called the “Bubblegum Tree” which had a trunk and infinite branches. Each branch could only have two sub-branches. Now, it is said that there is one such branch which has the tastiest bubblegum on it and all the monkeys of the village want to have it. A monkey called Babata is the first one to reach the tree, but since he was too happ

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