Binary Tree Postorder Traversal
Total Accepted: 28560 Total
Submissions: 92333My Submissions
Given a binary tree, return the postorder traversal of its nodes' values.
For example:
Given...
分类:
其他好文 时间:
2014-09-05 16:09:01
阅读次数:
172
//中序遍历int inorder_tree_walk(BinTreeNode * root){ if(root == NULL){ return -1; } stack s; BinTreeNode * p = root; while(!s.empty(...
分类:
其他好文 时间:
2014-09-05 14:15:11
阅读次数:
142
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> ?<head> ? <title> New Document </title> ? <meta name="Generator" content="EditPlus">...
分类:
其他好文 时间:
2014-09-05 10:16:01
阅读次数:
221
public class Solution { public List postorderTraversal(TreeNode root) { List result = new ArrayList(); Stack nodeStack = new Stack();...
分类:
其他好文 时间:
2014-09-05 02:08:10
阅读次数:
166
几乎所有的Rails网站都使用layout,但这回造成所有的网页都有同样的标题(在header中的title)。为每个网页设置独有的标题并不是件困难的事,解决方案见下文。
初步尝试
ruby
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD...
分类:
Web程序 时间:
2014-09-03 16:57:17
阅读次数:
222
问题描述
Given a binary tree, return the postorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [3,2,1].
Note: Recur...
分类:
其他好文 时间:
2014-09-02 21:23:55
阅读次数:
317
瀑布的水逆流而上,蒲公英的种子从远处飘回,变成伞的模样太阳从西边升起,落向东方。子弹退回枪膛,运动员回到起跑线上,我交回录取通知书,忘了十年寒窗。厨房里飘来饭菜的香,你把我的卷子签好名字,关掉电视,帮我把书包背上。你还在我身旁。
分类:
其他好文 时间:
2014-09-02 10:23:04
阅读次数:
186
一:
Qstring fileName = QFileDialog::getOpenFileName(this, tr("open file"), " ", tr("Allfile(*.*);;mp3file(*.mp3)"));
说明:这样就会产生一个对话框,和系统的资源管理器差不多的。返回的是你选择文件的 绝对路径。
参数1:父窗口
参数2:对话框的标题
参数3:...
分类:
其他好文 时间:
2014-09-02 00:22:13
阅读次数:
272