You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2014-06-28 10:45:34
阅读次数:
225
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2014-06-26 00:29:49
阅读次数:
168
首先要将mysql-connector-java-5.1.10-bin.ja加入系统java工程文件中
下载地址http://download.csdn.net/detail/u014112584/7359185
Mysql----->右击选择Properties属性--------------->Add External JARS
测试例子
i...
分类:
数据库 时间:
2014-06-22 22:58:21
阅读次数:
275
SELECT id FROM tran WHERE state = 'F' AND TIMESTAMPDIFF(SECOND,DATE_ADD(create_date,INTERVAL 10 DAY_MINUTE),"2014-06-18 10:30:29")>0
如果create_date加10分钟大于等于当前的时间("2014-06-18 10:30:29")...
分类:
数据库 时间:
2014-06-22 22:42:25
阅读次数:
284
git是一种管理数据的工具,一种支持快速索引查找数据并管理数据变化的工具。它为数据添加一个头封装为对象块(本文称为git对象)然后保存为文件。我们平时用惯了git commit,
git show, git add等常用命令,你可知道这些常用命令背后是由无数的git微命令完成的吗?今天我就和大家一起来学习这些git微命令,通过这些微命令我们可以很清晰的了解git工作机制...
分类:
其他好文 时间:
2014-06-22 21:49:54
阅读次数:
336
Fragment要点
Fragment作为Activity界面的一部分组成出现
可以在一个Activity中同时出现多个Fragment,并且,一个Fragment亦可在多个Activity中使用。
在Activity运行过程中,可以添加、移除或者替换Fragment(add()、remove()、replace())
Fragment可以响应自己的输入事件,并且有自己的生命周期,当然,它们的生命周期直接被其所属的宿主activity的生命周期影响。
而本文简单介绍主要通过点击不同按钮实现切换对应的frag...
分类:
移动开发 时间:
2014-06-22 20:33:24
阅读次数:
296
创建主键(举例)
SQL> alter table emp_ogg add constraint PK_empno primary key(empno);
--创建主键
查询某表有哪些约束
SQL> desc user_constraints;
Name Null? ...
分类:
其他好文 时间:
2014-06-22 19:51:36
阅读次数:
227
首先导入mysql-connector-java-5.1.10-bin.ja
下载地址:http://download.csdn.net/detail/u014112584/7359185
鼠标放在项目上,右击选择Properties----->Java Build Path ------>Add External JARS
测试代码:
import java.sql.Co...
分类:
数据库 时间:
2014-06-22 00:21:25
阅读次数:
409
/**
* 在List集合中众多方法中,add(int index,Object obj)方法与set(int index,Object e)方法不易区分
* ,通过下面实例,可以看出两个方法中的区别
*/
package gao;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
...
分类:
编程语言 时间:
2014-06-21 20:41:05
阅读次数:
348
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
求数字字符串的二进制和。同之前的数组代表数字,两个数组相加一样,只不过进位变成了2.可能两个串的长度不一样,故逆转,从左到右加下去,最后再逆转。
publi...
分类:
其他好文 时间:
2014-06-21 20:11:21
阅读次数:
344