Given an array of integers and an integer k, find out whether there there are two distinct indices
i and j in the array such that nums[i] = nums[j] and the difference between
i and j is at most k.
...
分类:
其他好文 时间:
2015-06-01 11:40:05
阅读次数:
148
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->...
分类:
其他好文 时间:
2015-06-01 06:12:28
阅读次数:
134
1.创建一个table@"create table rockTB(myId integer primary key autoincrement not null, time varchar(128) , body varchar(1024))"];2.查询FMResultSet * result =...
分类:
数据库 时间:
2015-05-31 20:07:01
阅读次数:
160
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1047Integer InquiryDescriptionOne of the first users of BIT's new supercomputer was Chip Diller. He exte...
分类:
其他好文 时间:
2015-05-31 16:37:41
阅读次数:
98
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1042N!DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N!InputOne N in one line, ...
分类:
其他好文 时间:
2015-05-31 15:20:25
阅读次数:
114
MySQL 数据类型MySQL中定义数据字段的类型对你数据库的优化是非常重要的。MySQL支持多种类型,大致可以分为三类:数值、日期/时间和字符串(字符)类型。数值类型MySQL支持所有标准SQL数值数据类型。这些类型包括严格数值数据类型(INTEGER、SMALLINT、DECIMAL和NUMER...
分类:
数据库 时间:
2015-05-31 13:45:06
阅读次数:
128
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares of ...
分类:
移动开发 时间:
2015-05-31 12:29:50
阅读次数:
146
Given an array of integers and an integer k, find out whether there there are two distinct indices i and j in the array such that nums[i] = nums[j] and the difference between iand j is at most k.思路分析:...
分类:
其他好文 时间:
2015-05-31 12:26:41
阅读次数:
87
一个源文件多个类
一个java源文件中是否可以包含多个类(不是内部类)?有什么限制?
答:可以有多个类,但只能有一个public的类,并且public的类名补习与文件名相一致。
示例代码如下:
public class Test1 {
private Integer id;
public void print(){
System.out.println("id="+id...
分类:
编程语言 时间:
2015-05-31 09:35:34
阅读次数:
196
java语言规范中说道:在许多情况下装箱与解拆箱是由编译器自行完成的。自动装箱:自动将基本数据类型封装为对象(包装器)类型,自动拆箱:就是自动将对象(包装器)重新转化为基本数据类型:例如用int来举例://装箱Integer i= 10; 相当于Integer i= new Integer(10);...
分类:
编程语言 时间:
2015-05-31 01:12:22
阅读次数:
190