An iterative way of writing quick sort:#include #include #include using namespace std;void quickSort(int A[], int n) { stack> stk; stk.push(make_pair(...
分类:
其他好文 时间:
2014-06-29 20:16:45
阅读次数:
179
题目:二叉树的中序遍历。思路:用递归来写中序遍历非常简单。但是题目直接挑衅说,----->"Recursive
solution is trivial"。好吧。谁怕谁小狗。递归代码: 1 List inOrder = new ArrayList(); 2 3 public
...
分类:
其他好文 时间:
2014-06-29 12:55:36
阅读次数:
176
??
简介:
本文全面详细介绍oracle执行计划的相关的概念,访问数据的存取方法,表之间的连接等内容。
并有总结和概述,便于理解与记忆!
+++
目录
---
一.相关的概念
Rowid的概念
Recursive Sql概念
Predicate(谓词)
DRiving Table(驱动表)
Probed ...
分类:
数据库 时间:
2014-06-26 12:08:09
阅读次数:
353
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: Recursive solut...
分类:
其他好文 时间:
2014-06-22 20:58:01
阅读次数:
157
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,2,3].
Note: Recursive soluti...
分类:
其他好文 时间:
2014-06-22 16:37:51
阅读次数:
168
http://en.wikipedia.org/wiki/Recursion_(computer_science)#Recursive_functions_and_algorithmsA commoncomputer programmingtactic is to divide a problem ...
分类:
其他好文 时间:
2014-06-15 22:47:35
阅读次数:
197
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: Recursive solut...
分类:
其他好文 时间:
2014-06-15 19:06:52
阅读次数:
166
前中后遍历 递归版 1 /* Recursive solution */ 2 class
Solution { 3 public: 4 vector preorderTraversal(TreeNode *root) { 5 6 vector
resul...
分类:
其他好文 时间:
2014-06-10 19:38:03
阅读次数:
219
wget 是linux上常用的下载命令。下面介绍一下简单的用法:常用的参数有:-b
(background) 将下载任务放到后台下载。-c (continue) 如果文件下载中断,会自动重连,接着下载。-r (recursive)
进行递归下载,比如要下载一个目录,目录中又有二级目录,并且这里也有你...
分类:
其他好文 时间:
2014-06-09 15:29:33
阅读次数:
194
【题目】
Given a binary tree, return the inorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,3,2].
Note: Recursive solution is trivial, could you do it iteratively?
confused what "{1,#,2...
分类:
其他好文 时间:
2014-06-01 13:01:23
阅读次数:
279