原题地址:https://oj.leetcode.com/problems/copy-list-with-random-pointer/题意:A
linked list is given such that each node contains an additional random pointe...
分类:
编程语言 时间:
2014-05-26 23:16:12
阅读次数:
368
####Median of Two Sorted Arrays >There are
two sorted arrays A and B of size m and n respectively. Find the median of the
two sorted arrays. The overa...
分类:
其他好文 时间:
2014-05-26 23:13:41
阅读次数:
265
Let S = s1 s2...s2n be a well-formed string of
parentheses. S can be encoded in two different ways:q By an integer sequence P =
p1 p2...pn where pi is...
分类:
其他好文 时间:
2014-05-26 22:07:33
阅读次数:
300
题目描述:The gray code is a binary numeral system
where two successive values differ in only one bit.Given a non-negative
integernrepresenting the total n...
分类:
其他好文 时间:
2014-05-26 21:30:04
阅读次数:
296
The most known area of theJordan 6 Carminemay
be the two-finger pull-up tongue and also the button lower shroud that hides top
of the a part of its la...
分类:
其他好文 时间:
2014-05-26 21:03:46
阅读次数:
333
Problem APlay with Floor and CeilInput:standard
inputOutput:standard outputTime Limit:1 secondTheoremFor any two
integersxandkthere exists two more in...
分类:
其他好文 时间:
2014-05-26 14:21:44
阅读次数:
270
Problem 2: Even Fibonacci numbers
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2,...
分类:
其他好文 时间:
2014-05-22 23:29:44
阅读次数:
435
Problem 4: Largest palindrome product
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.
Find the largest pal...
分类:
其他好文 时间:
2014-05-22 18:48:46
阅读次数:
355
Given two binary trees, write a function to
check if they are equal or not.Two binary trees are considered equal if they are
structurally identical an...
分类:
其他好文 时间:
2014-05-22 16:46:03
阅读次数:
173
【题目】
Given two numbers represented as strings, return multiplication of the numbers as a string.
Note: The numbers can be arbitrarily large and are non-negative.
【题意】
给定用字符串表示的整数,返回两个数的乘积结果字符串。两个数字都非负,且能任意大。
【思路】
1. 考虑其中一个数是0的情况
2. 模拟乘法运算...
分类:
其他好文 时间:
2014-05-21 13:45:37
阅读次数:
214