Description
D
Anti-Rhyme Pairs
Input: Standard Input
Output: Standard Output
Often two words that rhyme also end in the same sequence of characters. We use...
分类:
其他好文 时间:
2014-08-13 18:45:37
阅读次数:
230
1 /*-----------------------------------------------------------------------*/ 2 /* Seek File R/W Pointer ...
分类:
其他好文 时间:
2014-08-13 17:43:27
阅读次数:
1043
原题:
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of
every node never...
分类:
其他好文 时间:
2014-08-13 15:03:31
阅读次数:
261
记忆化搜索,有不明白的一个小地方,求指教。。。...
分类:
其他好文 时间:
2014-08-13 14:56:56
阅读次数:
165
文能深情寻萝莉,武能仗义护人妻[问题描述]Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return ...
分类:
其他好文 时间:
2014-08-13 14:51:56
阅读次数:
228
题目链接:Running Time of QuicksortChallengeIn practice, how much faster is Quicksort (in-place) than Insertion Sort? Compare the running time of the two a...
分类:
其他好文 时间:
2014-08-13 14:40:26
阅读次数:
262
题意:判断有没有两朵相同的雪花。每朵雪花有六瓣,比较花瓣长度的方法看是否是一样的,如果对应的arms有相同的长度说明是一样的。给出n朵,只要有两朵是一样的就输出有Twin snowflakes found.,如果任何两个都是不一样的输出No two snowflakes are alike。n=10...
分类:
其他好文 时间:
2014-08-13 14:26:26
阅读次数:
229
Populate each next pointer to point to its next right node.
二叉树的结构体里增加了next指针,编写程序,将二叉树里每个节点的next指针指向它右边的节点。...
分类:
其他好文 时间:
2014-08-13 13:16:36
阅读次数:
210
Time Limit:1000MSMemory Limit:10000KTotal Submissions:3239Accepted:1459Consider polynomials whose coefficients are 0 and 1. Addition of two polynomial...
分类:
其他好文 时间:
2014-08-13 12:58:06
阅读次数:
247
Problem Description
Jerboas are small desert-living animals, which resemble mice with a long tufted tail and very long hind legs. Jerboas shelter in well-hidden burrows. They create two types o...
分类:
其他好文 时间:
2014-08-13 10:33:25
阅读次数:
259