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 sequence of ...
分类:
其他好文 时间:
2015-02-13 09:21:11
阅读次数:
155
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...
分类:
其他好文 时间:
2015-02-12 12:25:35
阅读次数:
158
Given n non-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.
For example,
Given [0,1,0,2,1,0,1,3,2,1,2,1]...
分类:
移动开发 时间:
2015-02-11 12:45:01
阅读次数:
187
The gray code is a binary numeral system where two successive valuesdiffer in only one bit.
Given a non-negative integer n representing the totalnumber of bits in the code, print the sequence of gray...
分类:
其他好文 时间:
2015-02-11 09:24:25
阅读次数:
233
题意:给位数和位数和 求符合要求的最大值和最小值//想法都有了,可是却没有做粗来(你484傻啊?? ?(?_?)? ??)DescriptionYou have a positive integermand a non-negative integers. Your task is to find ...
分类:
其他好文 时间:
2015-02-10 20:11:51
阅读次数:
183
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:
其他好文 时间:
2015-02-10 15:06:30
阅读次数:
146
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2015-02-10 15:04:06
阅读次数:
186
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...
分类:
移动开发 时间:
2015-02-10 15:00:46
阅读次数:
202
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2015-02-10 14:49:49
阅读次数:
135
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...
分类:
其他好文 时间:
2015-02-10 14:44:23
阅读次数:
149