Forgot test cases
CodeChefOpen on judge ↗
HBTU is organizing a coding contest for ZEST. One of the coordinators A is busy in framing questions , he couldn't meet his girl friend as he promised to. Now after doing his work he gets free and finds his girlfriend B upset and asks her to meet. Now You are given a tree and nodes representing houses of people living there and every house has been assigned with the cost of that house. Cost of ea
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