You are given a rooted tree with N vertices (numbered 1 through N); vertex 1 is the root. Each vertex has a weight; let's denote the weight
…
Unlock the full statement, examples, constraints, and solution guidance.
…
8 30
3 99
6 40
Eternal • Pending
Inmobi • Pending
Inmobi • Pending
Inmobi • Pending
Squarepoint Capital • Pending