rlwrap工具可以解决linux下sqlplus提供浏览历史命令行的功能,和删除先前输入错误的字母等问题1.安装需要readline包
这个安装光盘就有[root@asm RedHat]# cd RPMS/[root@asm RPMS]# rpm -Uvh readline*warning:
re...
分类:
数据库 时间:
2014-07-22 23:12:57
阅读次数:
649
今天在学习鸟哥的菜的时候,发现自己linux不可以启用vim命令,错误为:bash: vim:
command not found。 机器环境:VMWare8+RED HAT Enterprise5 解决方法: 发现问题的根源在于没有安装好vim 输入
rpm -qa|grep vim ...
分类:
其他好文 时间:
2014-07-22 23:12:56
阅读次数:
993
/** * Definition for binary tree * struct
TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) :
val(x), left(...
分类:
其他好文 时间:
2014-07-22 23:07:34
阅读次数:
312
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-07-22 23:07:13
阅读次数:
379
Definition: see
wikihttp://en.wikipedia.org/wiki/Binary_search_tree 1 /* 2 This look up is a
fast operation because you eliminate the half 3 t...
分类:
其他好文 时间:
2014-07-22 23:06:34
阅读次数:
330
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-05-01 16:06:46
阅读次数:
427
Given a binary tree, determine if it is
height-balanced.For this problem, a height-balanced binary tree is defined as a
binary tree in which the depth...
分类:
其他好文 时间:
2014-05-01 14:38:39
阅读次数:
454
Consider the following exercise, found in a
generic linear algebra textbook.LetAbe ann×nmatrix. Prove that the following
statements are equivalent:Ais...
分类:
其他好文 时间:
2014-05-01 13:45:04
阅读次数:
349
这道题需要注意的地方有以下一些:1.
求从子树中的某节点到当前节点的最大路径不能采用递归方法,因为这个部分会被反复的调用,如果用递归,会使得之前已经计算过的节点被重复计算,使得时间复杂度特别高;2.
树中有节点的值是负数的。下面是AC代码。(我发现AC并不代表代码真的完全正确!!) 1 /** 2 ...
分类:
其他好文 时间:
2014-05-01 12:10:52
阅读次数:
274
Android调试Source Not Found的错误原因及解决办法!...
分类:
移动开发 时间:
2014-04-29 13:48:21
阅读次数:
362