1、首先用PL/SQL创建package1 create or replace package excuteBatchOperate2 as3 type sqlStr_Array is table of varchar2(1000) index by binary_integer;4 proce.....
分类:
数据库 时间:
2015-05-09 14:48:16
阅读次数:
159
https://www.hackerrank.com/challenges/lonely-integer 1 def main(): 2 n = int(raw_input()) 3 s = dict() 4 a = 0 5 6 arr = map(int,raw_...
分类:
其他好文 时间:
2015-05-09 13:13:50
阅读次数:
116
Implement atoi to convert a string to an 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 ca...
分类:
其他好文 时间:
2015-05-09 08:56:30
阅读次数:
104
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2015-05-09 07:42:26
阅读次数:
124
Problem:
Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999.
Solution:
时间复杂度O(n)
题目大意:
与12题相反,给一个罗马数字,要求转化为十进制数字
解题思路:
Java源...
分类:
编程语言 时间:
2015-05-08 18:15:03
阅读次数:
161
DECLARETYPEarr1_ttISTABLEOFINTINDEXBYPLS_INTEGER;TYPEarr2_ttISTABLEOFarr1_ttINDEXBYPLS_INTEGER;arr2_instarr2_tt;ROWINT:=1;colINT:=1;tmprowINT:=0;totINT:=0;BEGINWHILE(ROW<=5)LOOPcol:=1;tmprow:=ROW;WHILE(col<=ROW)LOOPtot:=tot+1;arr2_inst(tmprow)(col):=t..
分类:
数据库 时间:
2015-05-08 15:10:34
阅读次数:
155
Problem:
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
Solution:
根据数字将每一位转换为罗马字符串即可,时间复杂度O(len(num))
题目大意:
给一个整数,将整数调整为罗马数字,...
分类:
编程语言 时间:
2015-05-08 14:59:39
阅读次数:
150
1、内置类:a)整数、小数Integer,Float,Double直接比较基本数据类型的大小b)字符:比较unicode码之差c)字符串:如果其中一个是另外一个起始开始的子串,返回长度之差,否则返回第一个不相等的unicode码之差d)java.util.Date:根据日期的长整形数比较字符串排序:...
分类:
编程语言 时间:
2015-05-08 12:25:10
阅读次数:
171
1349: [Baltic2006]SquintTime Limit:1 SecMemory Limit:64 MBSubmit:427Solved:248[Submit][Status][Discuss]DescriptionWrite a program to calculate integer...
分类:
其他好文 时间:
2015-05-08 12:16:52
阅读次数:
110
AtomicInteger,一个提供原子操作的Integer的类。在Java语言中,++i和i++操作并不是线程安全的,在使用的时候,不可避免的会用到synchronized关键字。而AtomicInteger则通过一种线程安全的加减操作接口。...
分类:
编程语言 时间:
2015-05-08 10:55:09
阅读次数:
143