跟第七题一样,把最后的输出顺序换一下就行。。。 Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For exam...
分类:
其他好文 时间:
2014-11-15 21:29:30
阅读次数:
231
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an...
分类:
其他好文 时间:
2014-11-15 18:47:58
阅读次数:
103
Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For exa...
分类:
其他好文 时间:
2014-11-15 18:47:01
阅读次数:
234
Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,9,2...
分类:
其他好文 时间:
2014-11-15 18:28:47
阅读次数:
179
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:
其他好文 时间:
2014-11-15 18:20:45
阅读次数:
125
命令的格式:命令 -选项 参数例:ls -la /etc选项可以结合使用. 代表的是当前目录.. 代表当前目录的父目录root用户常用命令地址root:/sbin/usr/sbin所有用户常用命令地址all users:/bin/usr/binbin-->binary usr-->user sbi....
分类:
系统相关 时间:
2014-11-15 16:55:53
阅读次数:
236
There's usually a common strategy for "find *" problems - binary search: half the space can be dropped by some rules.And take care of corner cases.cla...
分类:
其他好文 时间:
2014-11-15 16:53:56
阅读次数:
171
Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally ide...
分类:
其他好文 时间:
2014-11-15 11:13:11
阅读次数:
171
这次相对来讲复杂点,题目如下:
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from lea...
分类:
其他好文 时间:
2014-11-15 01:27:53
阅读次数:
174
这次相对来讲复杂点,题目如下: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from lea...
分类:
其他好文 时间:
2014-11-15 01:23:35
阅读次数:
192