码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
Reverse Integer
Reverse IntegerReverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321 1 public class Solution { 2 public int reve...
分类:其他好文   时间:2014-11-09 22:04:55    阅读次数:172
Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:其他好文   时间:2014-11-09 20:44:22    阅读次数:204
[LeetCode] Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:其他好文   时间:2014-11-09 19:30:15    阅读次数:143
JDBC学习笔记:CRUD
1.建立数据库 1 --创建数据库 2 create database jdbc; 3 4 --选择调用jdbc数据库 5 use jdbc; 6 7 --创建user表,id:设置为主键 8 create table user 9 (10 id integer not null aut...
分类:数据库   时间:2014-11-09 16:26:06    阅读次数:197
LeetCode Reverse Integer 反转整数
1 class Solution { 2 public: 3 int reverse(int x) { 4 int e,s,num,k=0; 5 num=x; 6 e=0; 7 if(x<0) 8 nu...
分类:其他好文   时间:2014-11-08 23:29:37    阅读次数:326
SPOJ 962 Intergalactic Map
Intergalactic MapTime Limit: 6000msMemory Limit: 262144KBThis problem will be judged onSPOJ. Original ID:IM64-bit integer IO format:%lld Java class na...
分类:其他好文   时间:2014-11-08 23:25:16    阅读次数:350
ZOJ 3369 Saving Princess
Saving PrincessTime Limit: 1000msMemory Limit: 32768KBThis problem will be judged onZJU. Original ID:336964-bit integer IO format:%lld Java class name...
分类:其他好文   时间:2014-11-08 21:59:23    阅读次数:249
leetcode 9.Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.Notes:1) Negative number is notpalindrome.2) Compare from head to tail, cons...
分类:其他好文   时间:2014-11-08 16:43:57    阅读次数:124
Merge Sorted Array
Merge Sorted ArrayGiven two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that i...
分类:其他好文   时间:2014-11-08 16:28:21    阅读次数:191
Rearrange a string so that all same characters become d distance away
Given a string and a positive integer d. Some characters may be repeated in the given string. Rearrange characters of the given string such that the s...
分类:其他好文   时间:2014-11-08 16:27:57    阅读次数:186
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!