码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
[LeetCode] Single NumberString to Integer (atoi)
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 ...
分类:其他好文   时间:2014-11-04 18:51:41    阅读次数:227
Leetcode | Gray code
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb...
分类:其他好文   时间:2014-11-04 18:48:23    阅读次数:187
oracle 数据库 分割字符串返回结果集函数
CREATE OR REPLACE FUNCTION "UFN_SPLIT" ( p_list varchar2, p_sep varchar2 := ',' ) return TYPE_SPLIT pipelined is l_idx pls_integer; v_list v...
分类:数据库   时间:2014-11-04 16:37:53    阅读次数:213
verilog behavioral modeling --procedural assignments
1.procedural assignments are used for updating reg ,integer , time ,real,realtime and memory data types.2.difference between procedural assignments an...
分类:其他好文   时间:2014-11-04 14:41:34    阅读次数:217
int ,Intege,String 三者之间的转换
注:如果使用JDK5.0的话,JVM会自动完成装包解包的。1.Integer转换成int的方法Integer i =new Integer(10);int k = i.intValue();即Integer.intValue();2.int转换成Integerint i = 10;Integer i...
分类:其他好文   时间:2014-11-04 12:28:40    阅读次数:197
LeetCode:GrayCode
题目描述: The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total number of bits in the code, print the s...
分类:其他好文   时间:2014-11-04 11:09:10    阅读次数:135
并查集路径压缩与启发式合并
〖程序清单〗初始化:fori:=1tondofather[i]:=i;因为每个元素属于单独的一个集合,所以每个元素以自己作为根结点。寻找根结点编号并压缩路径:functiongetfather(v:integer):integer;beginiffather[v]=vthenexit(v);fath...
分类:其他好文   时间:2014-11-04 09:15:44    阅读次数:119
LeetCode OJ String to Integer (atoi) 字符串转数字
1 #include 2 #include 3 using namespace std; 4 int ato(const char *str) { 5 int i=0,e=0,s=0; 6 int max=2147483647,min=-2147483648; 7 in...
分类:其他好文   时间:2014-11-04 00:02:50    阅读次数:264
Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.要求是不能使用额外的空间,言下之意就是不能先转化成字符串来进行处理,所以得想另外一种办法。额外考虑:负数属于回文数字?思路:直接来截取最低位和最高位来进...
分类:其他好文   时间:2014-11-03 22:26:57    阅读次数:246
Reverse Integer
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321特殊:在32位机中,由于int的范围到该是-20亿到20亿之间,所以如果我们翻转一个数1912345678,就变成876543...
分类:其他好文   时间:2014-11-03 22:26:18    阅读次数:268
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!