zip解压:
unzip xxx.zip
jar解压:
unzip xxx.jar
rpm安装:
rpm -ivh xxx.rpm没权限:
“Cannot find bin/catalina.sh
The file is absent or does not have execute permission
This file is needed to run this progr...
分类:
其他好文 时间:
2015-08-12 11:32:57
阅读次数:
118
模板
1.初始化
2.找根节点
3.合并
int per[1100];
void init(){
for(int i =1; i <= N; ++i)
per[i] = i;//初始化 起初每个节点都是独立的 父节点是本身
}
int find(int x){//find函数 寻找根节点
int r = x;
while(r != per[r])
...
分类:
其他好文 时间:
2015-08-12 10:15:39
阅读次数:
138
【113-Path Sum II(路径和II)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum.
For example:
Given the below b...
分类:
编程语言 时间:
2015-08-12 07:49:38
阅读次数:
150
//模板
int per[1100];
void init(){
for(int i =1; i <= N; ++i)
per[i] = i;
}
int find(int x){
int r = x;
while(r != per[r])
r = per[r];
int i ,j;
i = x;
while(i != r){
j = pe...
分类:
其他好文 时间:
2015-08-12 01:19:10
阅读次数:
100
2010-4-21>MyEclipse6.6 汉化过程1.运行MyEclipse6.62. 在主菜单栏中点击 "help", 选择 "software update" 选择 "find and install"; 选择第二个search for new featrues to install ,点....
分类:
系统相关 时间:
2015-08-12 01:14:28
阅读次数:
166
Given an array of sizen, find the majority element. The majority element is the element that appears more than? n/2 ?times.You may assume that the arr...
分类:
其他好文 时间:
2015-08-12 01:02:11
阅读次数:
110
Linux常用命令002之搜索命令locate、whereis、which、find、grep...
分类:
系统相关 时间:
2015-08-11 23:29:38
阅读次数:
196
This problem can be solved by DP elegantly. You may refer to this link for the code and explanations.I try to rewrite the code, also in C++, but find ...
分类:
其他好文 时间:
2015-08-11 23:11:46
阅读次数:
102
问题描述Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.解决思路1.定义Line类{slope; intercept; isVertical; isHor...
分类:
其他好文 时间:
2015-08-11 22:53:24
阅读次数:
163
题目Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.思路题目要求一个二叉排序树的两个节点的公共父节点,说通俗点,其实就是这两个节点所在的分支是从哪里开始分叉的。求出这个分叉点。对于二叉排序树,它的一个特点就是:一个节点的左子树节点都小于该节点,而...
分类:
其他好文 时间:
2015-08-11 21:34:48
阅读次数:
137