#include int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR ipCmdLine,int nShowCmd){LARGE_INTEGER a,b; a.QuadPart = 100; a.QuadPart ...
分类:
其他好文 时间:
2015-06-12 11:34:47
阅读次数:
94
从JDK1.0开始,Integer中就定义了MIN_VALUE和MAX-VALUE两个常量:/** * A constant holding the minimum value an {@code int} can * have, -231. */public static final int MI...
分类:
编程语言 时间:
2015-06-12 11:31:03
阅读次数:
165
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-06-12 06:18:40
阅读次数:
90
Integer 转 String第一种方法:Integer i =4;String s =" ";String num = i+s;第二种方法:String num =String.valueOf(i);String 转 IntegerString ss="";Integer num =Intege...
分类:
编程语言 时间:
2015-06-11 19:13:46
阅读次数:
109
Max TreeGiven an integer array with no duplicates. A max tree building on this array is defined as follow:The root is the maximum number in the arrayT...
分类:
其他好文 时间:
2015-06-11 18:58:01
阅读次数:
228
没认真想,看到一种方法,应该算是最简单的方法了吧基础知识:罗马数字是由字符I,V,X,L,C,D,M等等表示的,其中I = 1;V = 5;X = 10;L = 50;C = 100;D = 500;M = 1000;接下来应该是V开始的重复,但是上面要加一个横线,表示对应数字的1000倍。个位应该...
分类:
其他好文 时间:
2015-06-11 18:21:36
阅读次数:
92
J2SE 5.0提供了一组atomic class来帮助我们简化同步处理。基本工作原理是使用了同步synchronized的方法实现了对一个long, integer, 对象的增、减、赋值(更新)操作.比如对于++运算符AtomicInteger可以将它持有的integer 能够atomic 地递增...
分类:
其他好文 时间:
2015-06-11 16:22:44
阅读次数:
107
No.9 Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integ...
分类:
其他好文 时间:
2015-06-11 16:16:15
阅读次数:
113
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted from left to right.
The first integer of each row is...
分类:
其他好文 时间:
2015-06-11 14:43:41
阅读次数:
96
zSpecifies that a following [...] conversion specifier applies to asize_tor the corresponding signed integer type argument;size_tis used to represent ...
分类:
其他好文 时间:
2015-06-11 12:48:40
阅读次数:
162