← All problemsSign in

Aman Jr and Crazy Cataloguing

Aman Jr. is a very organized student. He is preparing for IIT-JEE 2042 and is set to get AIR-1 thanks to his unique Book catalogue. Aman’s book catalogue is in the form of a directed tree with N shelves (that is, each node is in the form of a shelf). Each shelf has compartments numbered from 1 to M. [You can visualize the shelf as an array of compartments]. The tree is rooted at Shelf 1. Despite

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