摘要: Given a root of an N-ary tree, you need to compute the length of the diameter of the tree. The diameter of an N-ary tree is the length of the longest  阅读全文
posted @ 2021-01-30 16:22 CNoodle 阅读(832) 评论(0) 推荐(0)
摘要: A company has n employees with a unique ID for each employee from 0 to n - 1. The head of the company has is the one with headID. Each employee has on 阅读全文
posted @ 2021-01-30 07:53 CNoodle 阅读(645) 评论(0) 推荐(0)