摘要: You are given a nested list of integers nestedList. Each element is either an integer or a list whose elements may also be integers or other lists. Im 阅读全文
posted @ 2020-08-25 12:54 CNoodle 阅读(245) 评论(0) 推荐(0)
摘要: Find the sum of all left leaves in a given binary tree. Example: 3 / \ 9 20 / \ 15 7 There are two left leaves in the binary tree, with values 9 and 1 阅读全文
posted @ 2020-08-25 10:09 CNoodle 阅读(236) 评论(0) 推荐(0)
摘要: Given the root of a binary tree, collect a tree's nodes as if you were doing this: Collect all the leaf nodes. Remove all the leaf nodes. Repeat until 阅读全文
posted @ 2020-08-25 06:20 CNoodle 阅读(946) 评论(0) 推荐(0)
摘要: A binary tree is given such that each node contains an additional random pointer which could point to any node in the tree or null. Return a deep copy 阅读全文
posted @ 2020-08-25 03:07 CNoodle 阅读(606) 评论(0) 推荐(0)