Input: {1, 2, 3, 4}, r=2 Output: {1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 4} and {3, 4}.package recursion;
import java.util.ArrayList;
import java.util.Collections;
public class Print_all_possible_com...
分类:
其他好文 时间:
2014-07-06 11:09:05
阅读次数:
183
installed the Redhat Enterprise Linux 7 in 64 bit system, with dual boot enabled (Windows7 and RHEL7), and encountered quite a few problems, solved all...
分类:
其他好文 时间:
2014-07-06 10:55:25
阅读次数:
216
Description
Little John is herding his father's cattles. As a lazy boy, he cannot tolerate chasing the cattles all the time to avoid unnecessary omission. Luckily, he notice that there were N trees...
分类:
其他好文 时间:
2014-07-06 10:39:09
阅读次数:
188
Result学习笔记(二) - 动态结果集
动态结果 一定不要忘了为动态结果的保存值设置set get方法
第一部分:代码
//前端
Insert title here
返回success
返回error
//web.xml
${r}
/...
分类:
Web程序 时间:
2014-07-06 09:29:19
阅读次数:
243
按他的方法排序,每次移动一个数到顶点,排成需要的序列。
Problem D: ShellSort
He made each turtle stand on another one's back
And he piled them all up in a nine-turtle stack.
And then Yertle climbed up. He sat down on the p...
分类:
其他好文 时间:
2014-07-06 09:15:42
阅读次数:
211
insert Vodafone sim card,open the mms read report,when receive the read report,cann't download the message
Test steps:
1.insert Vodafone sim card
2.open the mms read report
3.send the mms successf...
分类:
其他好文 时间:
2014-07-06 08:36:10
阅读次数:
292
Result学习笔记(三)带参数的结果集
第一部分:代码
//前端
Insert title here
传参数
//web.xml
/user_success.jsp?t=${type}
//类包
package com.struts2.user.act...
分类:
Web程序 时间:
2014-07-06 08:26:27
阅读次数:
222
Given two integers n and k, return all possible combinations of k numbers out of 1 ...n.For example,If n = 4 and k = 2, a solution is:[ [2,4], [3,4...
分类:
其他好文 时间:
2014-07-05 22:10:53
阅读次数:
226
Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initially...
分类:
其他好文 时间:
2014-07-05 21:45:00
阅读次数:
202
思路一:1、准备表结构及对应的表数据a、表结构:create table TB_TREE(CID NUMBER not null,CNAME VARCHAR2(50),PID NUMBER //父节点)b、表数据:insert into tb_tree (CID, CNAME, PID) value...
分类:
编程语言 时间:
2014-07-05 20:54:07
阅读次数:
396