Given two integersnandk, return all possible
combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution
is:[ [2,4], [3,4], [2,3],...
分类:
其他好文 时间:
2014-05-14 03:54:40
阅读次数:
250
Pat1018代码
题目描述:
There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any station and return it to an...
分类:
其他好文 时间:
2014-05-13 23:27:04
阅读次数:
582
create table mytest(name varchar(20),password varchar(30));
create or replace procedure sp_pro2 is
begin
insert into mytest values('fc','123');
end;
查看错误信息
show error
如何调用...
分类:
数据库 时间:
2014-05-13 07:41:24
阅读次数:
464
atitit.eclipse 新特性总结3.1--4.3
Eclipse 3.1 1
Eclipse 3.2 Java开发工具的新特性 2
1. 内容辅助(Ctrl+Space)模板 2
2. 动态地重排它的建议 2
3. Quick Fix"的功能 2
Eclipse 3.3 M1 新特性一览 5
4. Browse all references 5
5. More Java ...
分类:
系统相关 时间:
2014-05-13 07:20:55
阅读次数:
560
[1] 启动ArcMap,加载各道路要素类,生成名为All-Roads的图层组,如他所示,符号级别绘制将对图层组内图层符号起作用;
图层组设置符号等级
[2] 在内容列表中,右键单击图层组All-Roads,选择属性;
[3] 打开图层组属性窗口,切换到组合页,如图 ;
工作组图层属性设置
[4] 单击符号级 进入符号级别设置窗...
分类:
其他好文 时间:
2014-05-13 07:14:44
阅读次数:
274
表分区
/*
锁:数据库控制共享资源并发访问的机制,用于保护正在被修改的数据
直到提交或回滚了事务之后,其他用户才可以更新数据
分类:行级锁和表级锁
*/
--行级锁:行级锁是一种排他的锁,防止其他事务修改此行
--Oracle会自动在下列语句中使用行级锁
insert
update
delete
select ...forupdate--允许用户一次锁定多行记录进行更新
/*
表级锁,使用命令显式的锁定表,应用表级锁的语法
分类:1.行共享;2.共享;3.排他;4.行...
分类:
数据库 时间:
2014-05-13 07:11:46
阅读次数:
459
容器hash_set是以hash table为底层机制的,几乎所有的操作都是转调用hash table提供的接口。由于插入无法存储相同的键值,所以hash_set的插入操作全部都使用hash table的insert_unique接口,代码如下:
pair insert(const value_type& obj)
{
pair p = rep.insert_unique(obj);
...
分类:
其他好文 时间:
2014-05-13 06:33:44
阅读次数:
303
1. mongodb创建数据库和集合
mongodb数据库和集合的创建是隐式的。
意思是说不用单独写create database 语句。
直接使用use关键词即可。
在bin/mongo shell下运行:...
分类:
数据库 时间:
2014-05-13 00:28:12
阅读次数:
445
You are given a string, S, and a list of words,
L, that are all of the same length. Find all starting indices of substring(s) in
S that is a concatena...
分类:
其他好文 时间:
2014-05-12 22:27:04
阅读次数:
265
Spiral MatrixGiven a matrix ofmxnelements
(mrows,ncolumns), return all elements of the matrix in spiral order.For
example,Given the following matrix:[...
分类:
其他好文 时间:
2014-05-12 20:04:43
阅读次数:
268