No.88 Merge Sorted ArrayGiven two sorted integer arraysnums1andnums2, mergenums2intonums1as one sorted array.Note:You may assume thatnums1has enough s...
分类:
其他好文 时间:
2015-05-25 18:29:54
阅读次数:
107
Sum of Consecutive Prime Numbers
Description
Some positive integers can be represented by a sum of one or more consecutive prime numbers. How many such representations does a given positive integer have? For example, the integer 53 has two representation...
分类:
其他好文 时间:
2015-05-25 14:37:58
阅读次数:
127
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z ...
分类:
其他好文 时间:
2015-05-25 12:48:15
阅读次数:
132
Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that after a tie, the next ranking number should be the next consecutive integer value. ...
分类:
数据库 时间:
2015-05-24 08:53:01
阅读次数:
186
关于网上的一个面试题,求输出结果:
/** * * @author DreamSea 2011-11-19 */ public class IntegerTest { public static void main(String[] args) { objPoolTest(); } public static void objPool...
分类:
编程语言 时间:
2015-05-24 01:25:07
阅读次数:
160
Problem 2140 Forever 0.5
Accept: 269 Submit: 934 Special Judge
Time Limit: 1000 mSec Memory Limit : 32768 KB
Problem Description
Given an integer N, your task is to judge whether...
分类:
其他好文 时间:
2015-05-23 22:46:53
阅读次数:
171
//十进制数转换成二进制数的程序public class C1{ public static void main(String args[]){ System.out.println(Integer.toBinaryString(6)); }}public class C1{...
分类:
编程语言 时间:
2015-05-23 18:11:34
阅读次数:
145
题意:
Two soldiers are playing a game. At the beginning first of them chooses a positive integer
n and gives it to the second soldier. Then the second one tries to make maximum possible number of ro...
分类:
其他好文 时间:
2015-05-23 14:18:31
阅读次数:
174
问题:InputThe first line of input contains a single integer P, (1 ≤ P ≤ 1000), which is the number of data sets that follow. Each data set consists of a...
分类:
其他好文 时间:
2015-05-23 11:28:17
阅读次数:
171
Problem 2111 Min Number
Accept: 586 Submit: 1139
Time Limit: 1000 mSec Memory Limit : 32768 KB
Problem Description
Now you are given one non-negative integer n in 10-base notation, ...
分类:
其他好文 时间:
2015-05-23 00:04:53
阅读次数:
149