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],
[2,3],
[1,2],
[1,3],
[1,4],
]...
分类:
其他好文 时间:
2014-11-04 17:28:35
阅读次数:
283
SVN的访问方式 Subversion 文件仓库可以通过许多不同的方式进行访问(Check Out,签出)——通过本地硬盘,或者通过各种网络协议。无论如何,文件仓库的位置总是使用 URL 来表示。下表显示了不同的 URL 模式对应的访问方法:模式访问方法file:///直接访问本地硬盘上文件仓库ht...
分类:
其他好文 时间:
2014-11-04 17:17:32
阅读次数:
271
在notepad++中新建文件hello.cs,F5运行,配置命令行cmd /K C:\windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /t:exe /out:$(FULL_CURRENT_PATH).exe $(FULL_CURRENT_PAT...
谈到系统的可伸缩性,Scale-up(纵向扩展)和Scale-out(横向扩展)是两个常见的术语,对于初学者来说,很容易搞迷糊这两个概念,这里总结了一些把概念解释的比较清楚的内容。 首先来段Wikipedia的,讲的很透彻了。 Scale vertically (scale up) To s...
分类:
其他好文 时间:
2014-11-04 17:03:55
阅读次数:
204
配置文件:User类:packagecom.colorlight.springscope;publicclassUser {privateintid;privateStringname;privateStringpassword;publicUser(){ System.out.println("创...
分类:
编程语言 时间:
2014-11-04 16:53:56
阅读次数:
230
1、创建模块目录结构注意:在未指定modulepath搜索路径的情况下,会有默认搜索路径的,可通过以下方式查看到[root@puppetmaster~]#puppetmaster--genconfig>/etc/puppet/puppet.conf.out
[root@puppetmaster~]#cat/etc/puppet/puppet.conf.out|grepmodulepath
modulepath=/e..
分类:
其他好文 时间:
2014-11-04 15:20:53
阅读次数:
248
publicclassHelloWorld{publicstaticvoidmain(String[]args){System.out.println("helloworld!");}}#!/bin/kshecho"--------helloWorld------->>"JAVA_HOME="/us...
分类:
编程语言 时间:
2014-11-04 12:27:00
阅读次数:
172
importjava.util.Scanner;importjava.util.Arrays;publicclassArrayTest03{publicstaticvoidmain(String[]args){System.out.println("请输入数组的长度:");InPutin=newInPut();//调用类InPutintn=in.in_put();//调用类InPut的方法in_putint[]arr=in.ScanIn(n);//调用方法ScanIn..
分类:
编程语言 时间:
2014-11-04 00:22:09
阅读次数:
330
异常:中断了正常指令流的事件,是JVM虚拟机产生的对象异常是程序运行时产生的,和编译无关class Test{ public static void main(String args[]){ System.out.println(111111); i...
分类:
编程语言 时间:
2014-11-03 23:57:57
阅读次数:
417
今天来说说ShellExecuteEx这个函数,先翻译MSDN,然后看个样例。ShellExecuteEx Function对指定应用程序运行某个操作语法:BOOLShellExecuteEx(LPSHELLEXECUTEINFOlpExecInfo);參数:lpExecInfo [in, out]...
分类:
系统相关 时间:
2014-11-03 22:26:31
阅读次数:
349