Gaithonde Leaves Aashram
CodeChefOpen on judge ↗
Guruji is angry with Gaithonde for leaving the Aashram but Gaithonde realizing it comes back and Guruji gave him a question to solve. Being a gangster he cannot solve the problem and asks Bunty to do the work. Bunty reaches out to you and points the gun at you to solve it within time. You are given a tree with 'N' nodes rooted at node 1 with each node 'u' associated with weight a[u] . You are als
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