摘要: 题目: Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longest path b 阅读全文
posted @ 2020-02-24 17:17 silentteller 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where 阅读全文
posted @ 2020-02-24 16:46 silentteller 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. Your algorithm should run in O(n) complexity. E 阅读全文
posted @ 2020-02-24 16:01 silentteller 阅读(243) 评论(0) 推荐(0) 编辑