题目
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
...
分类:
其他好文 时间:
2014-06-19 11:46:47
阅读次数:
277
题目
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
...
分类:
其他好文 时间:
2014-06-19 10:05:39
阅读次数:
278
题目
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
You may assume no duplicates i...
分类:
其他好文 时间:
2014-06-15 17:27:16
阅读次数:
251
postgresql数据库配置csv格式日志输出
下面介绍postgresql数据库中关于csv格式日志(pg中一种比较详细的日志输出方式)的设置方法。
1.进入$PGDATA目录(pg的安装目录,根据具体情况名称有所区别)下找到配置文件postgresql.conf
2.开启csvlog输出功能:
#开启csvlog输出功能(默认为off)
logging_collector =...
分类:
数据库 时间:
2014-06-15 16:41:09
阅读次数:
240
NSRange的定义typedefstruct_NSRange{NSUIntegerlocation;NSUIntegerlength;}NSRange;NSRange是一个结构体,其中location是一个以0为开始的index,length是表示对象的长度。他们都是NSUInteger类型。而N...
分类:
其他好文 时间:
2014-06-13 19:45:38
阅读次数:
286
Nutz是一组轻便小型的框架的集合,
各个部分可以被独立使用,把SSH的精华封装在一个1M左右的jar包中,Nutz不对其他任何第三方库产生依赖,如果不考虑数据库链接和日志的话,创建完美的Web应用只需要一个Nutz的jar包。
作为产品而言,就算是再优秀,如果没有优良的使用文档,也是白搭。...
分类:
其他好文 时间:
2014-06-13 18:47:10
阅读次数:
300
String对象提供的方法用于处理字符串及字符。常用的一些方法:charAt(index):返回字符串中index处的字符。indexOf(searchValue,[fromIndex]):该方法在字符串中寻找第一次出现的searchValue。如果给定了fromIndex,则从字符串内该位置开始搜...
分类:
编程语言 时间:
2014-06-13 17:42:30
阅读次数:
293
自从MySQL被Oracle收购以后,PostgreSQL逐渐成为开源关系型数据库的首选。本文介绍PostgreSQL的安装和基本用法,供初次使用者上手。以下内容基于Debian操作系统,其他操作系统实在没有精力兼顾,但是大部分内容应该普遍适用。安装1.
首先,安装PostgreSQL客户端。 su...
分类:
数据库 时间:
2014-06-13 16:52:13
阅读次数:
363
关于tarjan的思想可以在网上搜到,具体我也不太清楚,应该说自己理解也不深,下面是做题经验得到的一些模板。其中有很多转载,包括BYVoid等,感谢让我转。。。望各路大神愿谅有向图求连通分量的一般方法:
1 void Tarjan(u) { 2 dfn[u]=low[u]=++index 3...
分类:
其他好文 时间:
2014-06-13 16:14:11
阅读次数:
395