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-11-29 11:48:14
阅读次数:
184
Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the fol...
分类:
其他好文 时间:
2014-11-29 11:40:36
阅读次数:
255
public class Department { public String name; private int number; public Department() { super(); } public Department(String n...
分类:
其他好文 时间:
2014-11-29 11:37:11
阅读次数:
156
/*********************************************************************************
Copyright (C), 1988-1999, drvivermonkey. Co., Ltd.
File name:
Author: Driver Monkey
Version:
Mail:bo...
分类:
其他好文 时间:
2014-11-29 09:02:06
阅读次数:
218
Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array [2,3,-2,4],the contiguous subarray [2,3] has the largest produc...
分类:
其他好文 时间:
2014-11-29 07:08:33
阅读次数:
174
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2014-11-29 07:05:11
阅读次数:
208
Given a non-negative number represented as an array of digits, plus N to the number.The digits are stored such that the most significant digit is at t...
分类:
其他好文 时间:
2014-11-29 07:05:00
阅读次数:
185
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2014-11-29 06:50:19
阅读次数:
189
1. CentOS默认情况下,会安装OpenOffice之类的软件,这些软件需要Java的支持,默认会安装JDK的环境,若需要特定的Java环境,最好将默认的JDK彻底删除; 2. 查看默认的JDK命令:java –version 3. 如果先删除默认再装新的JDK,则与之相关的软件也会随之删除.....
分类:
其他好文 时间:
2014-11-29 06:38:16
阅读次数:
166
Oracle中 rownum,为符合where条件的输出结果集中现在有多少条记录。 where条件中的rownum可以这样理解 select中的rownum可以理解为,将这条记录放到输出结果集中,就在这条记录中加上这个是第几行(输出一行生成一个) row_number()OVER (...
分类:
数据库 时间:
2014-11-29 00:15:53
阅读次数:
173