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-01-09 20:46:49
阅读次数:
196
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
本质就是将...
分类:
编程语言 时间:
2015-01-08 18:09:51
阅读次数:
334
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:
其他好文 时间:
2015-01-06 17:35:22
阅读次数:
152
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value (will always be positive) of the key if...
分类:
系统相关 时间:
2015-01-05 14:54:59
阅读次数:
219
描述
Given two positive integers N and M, please divide N into several integers A1, A2, ..., Ak (k >= 1), so that:
1. 0
2. A1 + A2 + ... + Ak = N;
3. A1, A2, ..., Ak are different with each oth...
分类:
其他好文 时间:
2015-01-05 13:04:23
阅读次数:
121
Excel Sheet Column TitleGiven a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B ...
分类:
其他好文 时间:
2015-01-05 10:47:31
阅读次数:
111
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 23:39:20
阅读次数:
166
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
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
https://oj.leetcode.com/problems/first-missing-positive/http://blog.csdn.net/linhuanmars/article/details/20884585publicclassSolution{
publicintfirstMissingPositive(int[]A){
//如果可以排序,排序后从1开始检查
//如果一个数为3,把它置换到第三个空格
//i不动,..
分类:
其他好文 时间:
2015-01-03 13:25:09
阅读次数:
133