Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2014-09-11 20:53:22
阅读次数:
247
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321 1 public class Solution { 2 public int reverse(int x) { 3 ...
分类:
其他好文 时间:
2014-09-11 20:48:02
阅读次数:
223
{ID: anniel11PROG: namenumLANG: PASCAL}Program namenum;var i,n,l:integer; s,s2:string; dicl:array[1..12] of integer; dic:array[1..12,1..2000] of i...
分类:
其他好文 时间:
2014-09-11 17:09:12
阅读次数:
156
// 触发器create or replace trigger tr_sync_BD_MARBASCLASSafter INSERT or UPDATEon BD_MARBASCLASS for each rowdeclare v_cnt integer;PRAGMA AUTONOMOUS_TRAN...
分类:
数据库 时间:
2014-09-11 13:48:11
阅读次数:
361
create table t1( sid integer, sname varchar2(32), );alter table t1 modify gender varchar2(3);alter table t1 modify sname varchar2(30);create table t2(...
分类:
其他好文 时间:
2014-09-11 08:45:42
阅读次数:
218
Sequence
Time Limit: 6000MS
Memory Limit: 65536K
Total Submissions: 7447
Accepted: 2451
Description
Given m sequences, each contains n non-negative integer. Now we ma...
分类:
其他好文 时间:
2014-09-10 21:08:11
阅读次数:
200
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 a...
分类:
其他好文 时间:
2014-09-10 19:17:40
阅读次数:
270
John's tripTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:104164-bit integer IO format:%lld Java class name:Mai...
分类:
其他好文 时间:
2014-09-10 17:08:10
阅读次数:
349
实际中估计也没有这个需求,只是写写。
能不能直接由2进制转为16进制呢,最直接的办法是通过位移操作,也就是通常所说的 每四位二进制对应一个16进制,
假如java中有一种 二进制的基础类型 Binary bi = new Binary(11010101);这样的话 进行 bi >>> 4 位移操作 就可以很容易转换了,关于这个可以参考Integer.java中的toHexString(in...
分类:
其他好文 时间:
2014-09-10 15:54:10
阅读次数:
287
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
编程语言 时间:
2014-09-10 05:07:09
阅读次数:
200