码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
PL/SQL基本结构---PLSQL复合类型---表类型变量table
表类型变量table语法如下: type 表类型 is table of 类型 index by binary_integer; 表变量名 表类型;类型可以是前面的类型定义,index by binary_integer 子句代表以符号整数为索引,这样访问表类型变量中的数据方法就是“表变量名(索引符...
分类:数据库   时间:2015-03-28 14:13:15    阅读次数:152
leetcode第13题-Roman to Integer
这道题是把罗马数字转换为阿拉伯数字,转换的方法是:首先把每一个关键字母映射为阿拉伯数字,即I是1、V是5、X是10、L是50、C是100、D是500、M是1000.然后每一位的阿拉伯数字与其后面的(假如有的话)比较,如果不小于,则加上当前的数字,如果小于后面的数字,则加上两者的差,代码如下:#include #include #include int romanToInt(char *s) { ...
分类:其他好文   时间:2015-03-28 10:10:41    阅读次数:194
Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ...
分类:其他好文   时间:2015-03-28 01:04:10    阅读次数:151
java多线程之线程池
自JDK5之后,Java推出了一个并发包,java.util.concurrent,在Java开发中,我们接触到了好多池的技术,String类的对象池、Integer的共享池、连接数据库的连接池、Struts1.3的对象池等等,池的最终目的都是节约资源,以更小的开销做更多的事情,从而提高性能。 .....
分类:编程语言   时间:2015-03-27 23:48:55    阅读次数:355
Number of 1 Bits
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For example, the 32-bit in...
分类:其他好文   时间:2015-03-27 23:46:17    阅读次数:206
MySQLdb 的 Integer 字段类型转换,long -> int
使用 MySQLdb 或 SQLAlchemy 的时候,会发现表里的 `Integer` 字段被默认转换为了 `long` 类型。这种行为其实是 DB API 做的,即都是 MySQLdb 的错(假设你在使用这个 API 的话)。这是因为 MySQL 的 `unsigned ...
分类:数据库   时间:2015-03-27 22:28:43    阅读次数:207
LeetCode Algorithm 07_Reverse Integer
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321click to show spoilers.Have you thought about this?Here are som...
分类:其他好文   时间:2015-03-22 06:49:21    阅读次数:131
[LeetCode]Excel Sheet Column Title
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->...
分类:其他好文   时间:2015-03-22 00:10:33    阅读次数:141
LeetCode Excel Sheet Column Title
Excel Sheet Column Title Total Accepted: 18284 Total Submissions: 103291 My Submissions Question Solution Given a positive integer, return its corresponding column title as appear in an Excel sheet.F...
分类:其他好文   时间:2015-03-21 23:00:06    阅读次数:152
POJ1426——BFS——Find The Multiple
DescriptionGiven a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 a...
分类:其他好文   时间:2015-03-21 21:14:06    阅读次数:141
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!