码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
【LeetCode从零单排】No.9 Palindrome Number
题目      这道题是迄今为止最快通过的一道题,改了两次就过了,runtime一般(中等偏下,这点不太满意)。Palindrome就是判断一个整数是否对称。Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negativ...
分类:其他好文   时间:2015-02-07 13:16:36    阅读次数:141
C语言(八)typedef关键字
一、typedef作用简介     我们可以使用typedef关键字为各种数据类型定义一个新名字(别名)。 #include  typedef int Integer;    //为int数据类型定义一个别名typedef unsigned int UInterger;typedef float Float; int main(){ Integer i=-10; UInterger u...
分类:编程语言   时间:2015-02-07 13:16:29    阅读次数:203
[LeetCode]Excel Sheet Column Title
Q: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 这道题是Excel Sheet Column Number的反转。 与一般的N进制的...
分类:其他好文   时间:2015-02-07 13:12:54    阅读次数:131
【LeetCode从零单排】No.8 String to Integer (丧心病狂的一道题)
题目       题目很简单,就是写一个函数把string转换成int,但是通过率只有可怜的11%,难点是要考虑所有情况,特别是int溢出边界,反正我是写了2个小时还没解决,先放到这,有空接着搞,现在应该还有最后一个bug。Implement atoi to convert a string to an integer.Hint: Carefully consider all possible i...
分类:其他好文   时间:2015-02-07 11:43:19    阅读次数:147
hdu 1042 N!(高精度乘法)
Problem DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N!InputOne N in one line, process to the end of file.OutputFor each N,...
分类:其他好文   时间:2015-02-07 11:43:17    阅读次数:128
poj1047 Round and Round We Go
Round and Round We Go Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 12064   Accepted: 5630 Description A cyclic number is an integer n digits in length w...
分类:其他好文   时间:2015-02-07 09:11:11    阅读次数:122
Lintcode: Hash Function && Summary: Modular Multiplication, Addition, Power && Summary: 长整形long
In data structure Hash, hash function is used to convert a string(or any other type) into an integer smaller than hash size and bigger or equal to zer...
分类:其他好文   时间:2015-02-07 08:03:20    阅读次数:244
Lintcode: First Bad Version
The code base version is an integer and start from 1 to n. One day, someone commit a bad version in the code case, so it caused itself and the followi...
分类:其他好文   时间:2015-02-07 06:50:47    阅读次数:118
Roman to Integer
题目描述:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999. 这道题很简单,我就直接贴答案了。solution1:int romanTo....
分类:其他好文   时间:2015-02-06 23:10:02    阅读次数:136
HDU 5099 Comparison of Android versions(坑水题)
C - Comparison of Android versions HDU 5099 Time Limit: 1000 MS Memory Limit: 32768 KB 64-bit integer IO format: %I64d , %I64u Java class name: Main [Submit] [Status] Description As...
分类:移动开发   时间:2015-02-06 21:55:19    阅读次数:216
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!