Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 200 Bytes

note0543.md

File metadata and controls

5 lines (4 loc) · 200 Bytes

Thoughts

Good thought

  1. Traverse the tree, set the result as the larger one between itself and sum of left and right child trees
  2. Every node return max of left and right and then plus 1