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
java.lang 类 Integerjava.lang.Object java.lang.Number java.lang.Integer全部已实现的接口: Serializable, Comparable public final class Integerextends Number...
分类:
编程语言 时间:
2015-02-10 20:09:03
阅读次数:
150
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321click to show spoilers.Have you thought about this?Here are som...
分类:
其他好文 时间:
2015-02-10 15:04:23
阅读次数:
161
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
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-02-10 14:55:06
阅读次数:
155
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.public class Solution { public String int...
分类:
其他好文 时间:
2015-02-10 14:48:34
阅读次数:
131
var access, t: OleVariant; tmpQuery: TADOQuery; FTable: _Table; FCatalog: _Catalog; FIndex: _Index; I: Integer; pty: adox_tlb.Property_; pties...
分类:
其他好文 时间:
2015-02-10 14:42:50
阅读次数:
183
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:
其他好文 时间:
2015-02-10 14:40:36
阅读次数:
133
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.class Solution {public: int romanToInt(st...
分类:
其他好文 时间:
2015-02-10 14:39:57
阅读次数:
111
delphi xe7 中对数组操作做了很多扩充,比如加入了类似字符串处理的功能。例如,数组相加var A: array of integer; B: TBytes = [1,2,3,4]; //Initialization can be done from declarationbegin ....
分类:
编程语言 时间:
2015-02-10 13:15:23
阅读次数:
173