Graph Valid Treearrow-up-right (use List<Set<Integer>> instead of List<List<Integer>>, in order to remove key in undirected graph)
Find Leaves of Binary Treearrow-up-right skills to get the height of node and add the node to the proper position using DFS
Last updated 6 years ago