1 import java.util.ArrayList; 2 import java.util.List; 3 4 public class BinarySearchTree { 5 6 // 树的根结点 7 private TreeNode root = nu...
分类:
编程语言 时间:
2014-07-16 23:14:45
阅读次数:
365
Longest Ordered Subsequence
Longest Ordered Subsequence
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 31680
Accepted: 13848
Description
A nu...
分类:
其他好文 时间:
2014-07-06 00:04:50
阅读次数:
236
它有三种模式: 一 一般模式 二 编辑模式 三 命令行模式介绍几种比较常用的吧 ~~ 退出:q 写入:w 强制:! (以上可叠加) 显示行号:set nu 取消:set nonu 跳转到n行:nG 最后一行:G 第一行:gg(=1G) 向某个方向移动n个字符: 方向可以用...
分类:
其他好文 时间:
2014-07-05 20:27:33
阅读次数:
196
public static void setVersion(final Versioned versioned, String version) throws WTException { try { if (version == nu...
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-30 21:36:50
阅读次数:
292
条件操作符是向右关联的,从左到右进行计算,于是a?b:c?d:e 应理解为 a?b:(c?d:e)。在c#2.0里面实现了Nullable数据类型,放弃对object数据进行 if(object==null)这样的判断了。同时你会发现,在数据库应用上,数据库中有的字段允许取空值,在C#世界中引入nu...
分类:
其他好文 时间:
2014-06-30 12:27:39
阅读次数:
171
1 SELECT 2 col.name AS 列名, 3 typ.name as 数据类型, 4 col.max_length AS 占用字节数, 5 col.precision AS 数字长度, 6 col.scale AS 小数位数, 7 col.is_nu...
分类:
数据库 时间:
2014-06-27 16:39:34
阅读次数:
291
在查询时,如果使用到LIKE关键字,就要注意有没有使用到索引;没有使用索引前:mysql>explainselect*fromemployeeswherefirst_name=‘Georgi‘\G;***************************1.row***************************id:1select_type:SIMPLEtable:employeestype:ALLpossible_keys:NU..
分类:
数据库 时间:
2014-06-27 06:10:07
阅读次数:
272
一)回顾JavaScript基础 (1)函数的定义方式 *>>正常方式 function add(num1,num2){...} >>构造器方式 var add = new Function("num1","num2","return num1+nu...
分类:
Web程序 时间:
2014-06-26 22:15:17
阅读次数:
225
简易字符串匹配,题意不难 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 int main(){ 9 int i, j, k, t, n;10 int nu...
分类:
其他好文 时间:
2014-06-25 12:07:42
阅读次数:
145