1、何为泛型首先泛型的本质便是类型参数化,通俗的说就是用一个变量来表示类型,这个类型可以是String,Integer等等不确定,表明可接受的类型,原理类似如下代码int pattern; //声明一个变量未赋值,pattern可以看作是泛型pattern = 4;pattern = 5;//4和5...
分类:
编程语言 时间:
2014-09-12 14:58:03
阅读次数:
267
[leetcode]Roman to Integer...
分类:
其他好文 时间:
2014-09-12 12:02:23
阅读次数:
234
[leetcode]Integer to Roman...
分类:
其他好文 时间:
2014-09-12 11:55:43
阅读次数:
196
[leetcode]String to Integer (atoi)...
分类:
其他好文 时间:
2014-09-12 10:15:01
阅读次数:
150
Sorting It All OutTime Limit: 1000msMemory Limit: 10000KBThis problem will be judged onPKU. Original ID:109464-bit integer IO format:%lld Java class n...
分类:
其他好文 时间:
2014-09-12 01:06:42
阅读次数:
178
第一步是要知道结构体大小的计算方式: 结构体大小等于最后一个成员的偏移量加上最后一个成员的大小, 偏移量指的是结构体变量中成员的地址 – 结构体变量地址的差, 第一个成员的偏移量为0 下面代码 TRecord2 = record a: Integer; b: Integer; c: Integer;...
分类:
其他好文 时间:
2014-09-11 23:47:12
阅读次数:
336
TRecord2 = record a: Integer; b: Integer; c: Integer; end; TRecord1 = record a: Byte; case Integer of 0: (a1: TRecord2); 1: (a2: Int64); end; 第一步是要知道结...
分类:
其他好文 时间:
2014-09-11 22:23:32
阅读次数:
261
RankTime Limit: 1000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:170464-bit integer IO format:%I64d Java class name:Mainthere...
分类:
其他好文 时间:
2014-09-11 22:16:02
阅读次数:
228
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999. 罗马数字有如下符号:罗马字符: I V X L C D M对应数字...
分类:
其他好文 时间:
2014-09-11 22:07:42
阅读次数:
271
ExpeditionTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:243164-bit integer IO format:%lld Java class name:Main...
分类:
其他好文 时间:
2014-09-11 20:54:42
阅读次数:
323