Description has only two SentencesTime Limit: 3000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Problem Descriptionan = X*an-1 + Y a....
分类:
其他好文 时间:
2014-10-19 21:17:00
阅读次数:
248
each of which 在以下為 同位語,非關代。1. An urn contains two balls, each of which is known to be either white or black.2. Q. Many companies set a number of objec...
分类:
其他好文 时间:
2014-10-19 19:50:19
阅读次数:
211
1306. Sequence Median
Time limit: 1.0 second
Memory limit: 1 MB
Language limit: C, C++, Pascal
Given a sequence of N nonnegative integers. Let's define the median of such sequence. If N is...
分类:
其他好文 时间:
2014-10-19 18:40:09
阅读次数:
265
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:
其他好文 时间:
2014-10-19 18:18:19
阅读次数:
188
Number Sequence
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 11691 Accepted Submission(s): 5336
Problem Description
Given two se...
分类:
其他好文 时间:
2014-10-19 11:41:20
阅读次数:
162
Implement insert and delete in a tri-nary tree. A tri-nary tree is much like a binary tree but with three child nodes for each parent instead of two -...
分类:
其他好文 时间:
2014-10-19 02:40:16
阅读次数:
236
题目:Divide two integers without using multiplication, division and mod operator.思路分析二分法.将除数不断增倍,而结果同样扩大两倍,直到除数的值大于被除数.然后再利用被除数减去除数最后增长到小于被除数的值,递归求出结果.例...
分类:
其他好文 时间:
2014-10-19 01:19:32
阅读次数:
288
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two n...
分类:
其他好文 时间:
2014-10-19 01:13:19
阅读次数:
210
Power Strings
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 33163
Accepted: 13784
Description
Given two strings a and b we define a*b to be their concatena...
分类:
其他好文 时间:
2014-10-18 18:25:03
阅读次数:
156