Given a nested list of integers, implement an iterator to flatten it. Each element is either an integer, or a list -- whose elements may also be integ ...
分类:
其他好文 时间:
2016-07-22 01:09:03
阅读次数:
168
Flatten a binary tree to a fake "linked list" in pre-order traversal. Here we use the right pointer in TreeNode as the next pointer in ListNode. Notic ...
分类:
其他好文 时间:
2016-07-05 01:04:15
阅读次数:
195
一天一道LeetCode
本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github
欢迎大家关注我的新浪微博,我的新浪微博
欢迎转载,转载请注明出处
(一)题目
Given a binary tree, flatten it to a linked list in-place.
For example,
Given 1
/ \...
分类:
其他好文 时间:
2016-07-03 19:28:53
阅读次数:
149
Flatten a binary tree to a fake "linked list" in pre-order traversal. Here we use the right pointer in TreeNode as the next pointer in ListNode. For e ...
分类:
其他好文 时间:
2016-07-01 06:30:03
阅读次数:
165
Given a nested list of integers, implement an iterator to flatten it. Each element is either an integer, or a list -- whose elements may also be integ ...
分类:
其他好文 时间:
2016-06-28 07:05:48
阅读次数:
239
concatAll: Exercise 12: Retrieve id, title, and a 150x200 box art url for every video You've managed to flatten a tree that's two levels deep, let's t ...
分类:
编程语言 时间:
2016-06-26 23:55:34
阅读次数:
239
Given a binary tree, flatten it to a linked list in-place. For example,Given The flattened tree should look like: 思路: 将一个二叉树 就地 压成"链表"的结构; ...
分类:
其他好文 时间:
2016-06-26 23:45:26
阅读次数:
127
Given a nested list of integers, implement an iterator to flatten it. Each element is either an integer, or a list -- whose elements may also be integ ...
分类:
其他好文 时间:
2016-06-24 08:06:17
阅读次数:
267