摘要: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path1->2->3 which 阅读全文
posted @ 2019-05-24 19:17 GoodRnne 阅读(168) 评论(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. Examp 阅读全文
posted @ 2019-05-24 19:01 GoodRnne 阅读(317) 评论(0) 推荐(0)