Given an integer array, adjust each integers so that the difference of every adjcent integers are not greater than a given number target.If the array ...
分类:
其他好文 时间:
2014-12-24 06:25:41
阅读次数:
170
题目1041:Simple Sorting
时间限制:1 秒
内存限制:32 兆
特殊判题:否
提交:3971
解决:1483
题目描述:
You are given an unsorted array of integer numbers. Your task is to sort this array and kill possible...
分类:
编程语言 时间:
2014-12-23 21:16:14
阅读次数:
262
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->...
分类:
其他好文 时间:
2014-12-23 13:47:09
阅读次数:
158
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->...
分类:
其他好文 时间:
2014-12-23 11:54:44
阅读次数:
186
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:
S...
分类:
其他好文 时间:
2014-12-23 10:36:57
阅读次数:
116
question(题意):
Describe a O(n lg(n))-time algorithm that, given a set S of n integers and another integer x, determines whether or not there exist two elements in S whose sum is exactly x.
设计一个O(n ...
分类:
编程语言 时间:
2014-12-23 09:05:46
阅读次数:
239
Determine whether an integer is a palindrome. Do this without extra space.对于这道题不能用额外的空间,即不能用一个数组来保存各个位数,因此对于这种问题可以采用判断两头数字的方法 1 package Palindrome.Num...
分类:
其他好文 时间:
2014-12-22 22:42:10
阅读次数:
167
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->...
分类:
其他好文 时间:
2014-12-22 22:30:05
阅读次数:
211
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...
分类:
其他好文 时间:
2014-12-22 19:40:49
阅读次数:
151
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:
其他好文 时间:
2014-12-22 19:18:27
阅读次数:
180