Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2014-11-04 14:28:59
阅读次数:
179
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:
其他好文 时间:
2014-11-04 14:28:24
阅读次数:
204
题目描述:
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the s...
分类:
其他好文 时间:
2014-11-04 11:09:10
阅读次数:
135
Given a list, rotate the list to the right by k places, where k is non-negative.
For example:
Given
1->2->3->4->5->NULL and
k = 2,
return
4->5->1->2->3->NULL.
看到这个题目感到奇怪的是为什么是“右旋”,而不是“左旋...
分类:
其他好文 时间:
2014-11-02 13:54:27
阅读次数:
225
DescriptionVasya plays Robot Bicorn Attack.The game consists of three rounds. For each one a non-negative integer amount of points is given. The resul...
分类:
其他好文 时间:
2014-11-01 13:24:08
阅读次数:
157
Given a non-negative number represented as an array of digits, plus one to the number.
The digits are stored such that the most significant digit is at the head of the list.
一开始我误解了题目的意思,以为是新建一个...
分类:
其他好文 时间:
2014-10-31 22:16:05
阅读次数:
253
Strange Way to Express IntegersDescriptionElina is reading a book written by Rujia Liu, which introduces a strange way to express non-negative integer...
分类:
其他好文 时间:
2014-10-30 20:47:17
阅读次数:
242
题目:Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints ...
分类:
编程语言 时间:
2014-10-30 07:09:03
阅读次数:
274
Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:
移动开发 时间:
2014-10-30 01:41:48
阅读次数:
169
题目:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your max...
分类:
其他好文 时间:
2014-10-30 01:37:50
阅读次数:
247