码迷,mamicode.com
首页 >  
搜索关键字:incorrect integer va    ( 17090个结果
Leetcode | First Missing Positive
Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm sho...
分类:其他好文   时间:2014-05-16 02:58:54    阅读次数:249
oracle 数组 array
一维数组示例如下:--Createdon2014-5-15byADMINISTRATOR DECLARE TYPEArr1ISVARRAY(10)OFNUMBER; Tab_1Arr1; TYPEArr2ISTABLEOFNUMBERINDEXBYBINARY_INTEGER; Tab_2Arr2; BEGIN --Teststatementshere Tab_1:=Arr1(1,3,4,6,3,2,8,5); FORaIN1..Tab_1.CountLOOP Dbms_Output.Put..
分类:数据库   时间:2014-05-16 02:28:48    阅读次数:371
LeetCode 012 Integer to Roman
【题目】 Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 【题意】 给定一个整数,将其表示成罗马数字 【思路】 罗马数字中只使用如下七个基值字母:M,D,C,L,X,V,I,分别用来表示1000、500、100、50、10、5、1。 罗马数组数规则: 基本数字Ⅰ、X 、C 中的任何一个,自身连用构成数目,或者放在大数的右边连用...
分类:其他好文   时间:2014-05-16 01:46:55    阅读次数:312
[leetcode]_String to Integer (atoi)
非常考虑思维全面性的一道题,考验是否能够考虑本问题的方方面面。题目:将一个string转换为int。实现函数atoi()的功能。先应该明确atoi()有哪些特殊功能:(正常的正负数情况我就不列了)inputoutput”+1“1” + 1“0(error了)” 1“1(前头只有空格是合法的...
分类:其他好文   时间:2014-05-16 01:08:33    阅读次数:245
[leetcode]_Palindrome Number
判断integer是否为回文串(负数全部不为回文串)思路很直接,提取出integer中的每一位,一头一尾进行比较是否相同。一次AC , 直接上代码:public boolean isPalindrome(int x) { if(x = 0 && x 0){ ...
分类:其他好文   时间:2014-05-16 00:24:44    阅读次数:386
【LeetCode】- String to Integer (字符串转成整形)
[ 问题: ] Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases. Notes: It is intended for this...
分类:其他好文   时间:2014-05-15 23:34:05    阅读次数:353
leetcode Integer to Roman
把阿拉伯数字转换成罗马数字...
分类:其他好文   时间:2014-05-15 19:22:51    阅读次数:232
[leetcode]_Reverse Integer
经历了三道树的题后,完全崩溃中,急需一道非树图的题来挽救信心。题目:反转数字。input : 123 , output : 321.思路:直接,没什么好说的。自己代码:很龊,有大量的冗余信息,还申请了一个List,虽然AC了,但有很大改进空间。public int reverse(int x) { ...
分类:其他好文   时间:2014-05-15 14:22:31    阅读次数:212
java并发编程之Guarded Suspention
当客户端请求速度远远大于服务端的处理速度,这时候就非常适合使用GuardedSuspention模式packagecn.fcl.guardendSuspension; importjava.util.ArrayList; importjava.util.List; publicclassRequestQueue{ privateList<Integer>integers=newArrayList<Integer>(); ..
分类:编程语言   时间:2014-05-15 09:08:21    阅读次数:283
多参数的接法
-(id)initWithTitle:(NSString*)titlemessage:(NSString*)messagedelegate:(id)delegatecancelButtonTitle:(NSString*)cancelButtonTitleotherButtonTitles:(NSString*)otherButtonTitles,...NS_REQUIRES_NIL_TERMINATION;关于多参数的接法;va_listargumentList;NSMutableArra..
分类:其他好文   时间:2014-05-15 08:44:11    阅读次数:199
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!