Problem Description:Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.Solution: 递归。 1 public List>...
分类:
其他好文 时间:
2014-07-07 16:59:12
阅读次数:
169
Problem Description:Given a binary tree, return thepostordertraversal of its nodes' valuesSolution: 1 public List postorderTraversal(TreeNode root) { ...
分类:
其他好文 时间:
2014-07-07 16:45:23
阅读次数:
177
树的层次遍历,比较简单,3个题的做法完全一样,只是在特定的地方对结果进行reverse。1、Binary Tree Level Order Traversal/** * Definition for binary tree * struct TreeNode { * int val; * ...
分类:
其他好文 时间:
2014-07-07 16:39:56
阅读次数:
194
Problem Description:Given a binary tree, return thepreordertraversal of its nodes' values.Solution: 1 public List preorderTraversal(TreeNode root)...
分类:
其他好文 时间:
2014-07-07 16:34:34
阅读次数:
208
非常简单的一道题/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x...
分类:
其他好文 时间:
2014-07-07 16:25:49
阅读次数:
220
Problem Description:Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf ...
分类:
其他好文 时间:
2014-07-07 16:01:34
阅读次数:
223
Problem Description:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below bina...
分类:
其他好文 时间:
2014-07-07 15:57:05
阅读次数:
252
extjs_07_combobox&tree&chart...
分类:
Web程序 时间:
2014-06-30 10:29:38
阅读次数:
259
自动控制原理学习总结
明天就考自控了,现在也还没怎么做题,待会帮empty castle . L 把数据都备份好了认真看看题吧。。。还好是明天下午考试,不然估计会很坑爹。搞定自控!
自控的学习。。。基本上都是自学,老师上课基本上是白搭,一开始两周还坐前面听课。其实看不见,高度近视。都是“听”的。。。跟同学开玩笑说。。上自控就跟听力课似得。。中文听力课。...
分类:
其他好文 时间:
2014-06-30 07:48:34
阅读次数:
221
1. start IDLE
“Python 2.5”→“IDLE(Python GUI)”
2. open your source file window
From python shell, select file->open...
3. show debug control
From python shell, select Debug->Debuger
4....
分类:
编程语言 时间:
2014-06-29 22:47:26
阅读次数:
356