Given a positive integer, return its corresponding column title as appear in an Excel sheet.
For example:
1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
28 -> AB
Credits...
分类:
其他好文 时间:
2015-01-03 22:29:17
阅读次数:
216
QUESTIONGiven an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.FIRST TRYclass Sol...
分类:
其他好文 时间:
2015-01-03 19:49:18
阅读次数:
178
Integer to RomanGiven an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.罗马数字的组数规则,有几条须注意掌握;(1)基本数字Ⅰ、...
分类:
其他好文 时间:
2015-01-03 18:28:19
阅读次数:
174
First Missing PositiveGiven an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Yo...
分类:
其他好文 时间:
2015-01-03 17:08:17
阅读次数:
127
题目链接:点击打开链接
除了Integer, String等,其他(即对象)都是引用。。(就是地址,想要和C一样的效果要新建一个对象)
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java...
分类:
其他好文 时间:
2015-01-03 15:57:31
阅读次数:
261
https://oj.leetcode.com/problems/anagrams/http://blog.csdn.net/linhuanmars/article/details/21664747publicclassSolution{
publicList<String>anagrams(String[]strs){
intlen=strs.length;
Map<Map<Integer,Integer>,List<String>>map=newHash..
分类:
其他好文 时间:
2015-01-03 13:22:23
阅读次数:
194
https://oj.leetcode.com/problems/permutations-ii/http://blog.csdn.net/linhuanmars/article/details/21570835publicclassSolution{
publicList<List<Integer>>permuteUnique(int[]num)
{
//SolutionA:
//returnpermuteUnique_Swap(num);
//SolutionB:
returnp..
分类:
其他好文 时间:
2015-01-03 13:21:53
阅读次数:
143
SQLite自增ID自段 使用方法为 INTEGER PRIMARY KEY AUTOINCREMENT 如:CREATE TABLE 21andy(id INTEGER PRIMARY KEY AUTOINCREMENT,21andy VARCHAR ( 100 ) NOT NULL ,d...
分类:
数据库 时间:
2015-01-03 13:10:19
阅读次数:
154
java.lang 类 Integerjava.lang.Object java.lang.Number java.lang.Integer全部已实现的接口: Serializable, Comparable public final class Integerextends Number...
分类:
编程语言 时间:
2015-01-03 10:35:35
阅读次数:
168
Find The Multiple
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 18757
Accepted: 7592
Special Judge
Description
Given a positive integer n, write a pr...
分类:
其他好文 时间:
2015-01-03 09:23:07
阅读次数:
137