https://leetcode.com/problems/palindrome-number/Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some ...
分类:
其他好文 时间:
2015-05-04 21:35:51
阅读次数:
127
Area of Simple PolygonsTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:138964-bit integer IO format:%lld Java cl...
分类:
其他好文 时间:
2015-05-04 20:09:11
阅读次数:
140
https://leetcode.com/problems/string-to-integer-atoi/Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. ...
分类:
其他好文 时间:
2015-05-04 20:08:49
阅读次数:
128
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 00111001011110...
分类:
其他好文 时间:
2015-05-04 18:18:59
阅读次数:
71
java中String的长度
使用 Integer.MAX_VALUE
Integer.MAX_VALUE = 2147483647 : String 和 StringBuffer
获得长度的方法:
public int length()
Returns the length of this string...
分类:
编程语言 时间:
2015-05-04 18:16:01
阅读次数:
117
数据类型:
整型: smallint integer bigint
任意精度数值: numeric(precision,scale) 精度、刻度
浮点型: real
序号类型(自增): serial bigserial
字符类型:varchar(n) char(n) text
日期类型:timestamp8字节 2013-05-17 13:01:38.437925...
分类:
数据库 时间:
2015-05-04 18:13:22
阅读次数:
261
Description
Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater tha...
分类:
其他好文 时间:
2015-05-04 15:38:30
阅读次数:
105
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-05-04 13:46:54
阅读次数:
126
Farey SequenceTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 12802Accepted: 4998DescriptionThe Farey Sequence Fn for any integer n with n >=...
分类:
其他好文 时间:
2015-05-03 21:54:32
阅读次数:
120
Given an integer n, generate a square matrix filled with elements from 1 to n^2 in spiral order.For example,Given n = 3,You should return the followin...
分类:
其他好文 时间:
2015-05-03 20:36:52
阅读次数:
125