码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
leetcode_Contains Duplicate II_easy
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
168 Excel Sheet Column Title
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
SQL 语句记录
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
hdu 1047 Integer Inquiry
题目连接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
hdu 1042 N!
题目连接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支持多种类型,大致可以分为三类:数值、日期/时间和字符串(字符)类型。数值类型MySQL支持所有标准SQL数值数据类型。这些类型包括严格数值数据类型(INTEGER、SMALLINT、DECIMAL和NUMER...
分类:数据库   时间:2015-05-31 13:45:06    阅读次数:128
LeetCode Happy Number
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
LeetCode Contains Duplicate II
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面试题第一天(一个源文件多个类,&和&&的区别)
一个源文件多个类 一个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拆箱、装箱
java语言规范中说道:在许多情况下装箱与解拆箱是由编译器自行完成的。自动装箱:自动将基本数据类型封装为对象(包装器)类型,自动拆箱:就是自动将对象(包装器)重新转化为基本数据类型:例如用int来举例://装箱Integer i= 10; 相当于Integer i= new Integer(10);...
分类:编程语言   时间:2015-05-31 01:12:22    阅读次数:190
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!