← All problemsSign in

Curious Crow

Crow Mogambo is an admirer of the beauty of trees. He flies in the sky searching the tree which has a lot of fruits attached to it. He found a tree with $N$ nodes which are rooted at $1$.The tree is a hybrid which has a different kind of fruits attached to it. Every node has $1$ fruit attached to it. But he is still curious about the tree and he wants to find the no of different fruits attached t

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