PuzzleA children's puzzle that was popular 30 years ago consisted of a 5x5 frame which contained 24 small squares of equal size. A unique letter of th...
分类:
其他好文 时间:
2014-12-19 01:49:46
阅读次数:
283
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 and the nodes have the same value.
#include
#...
分类:
其他好文 时间:
2014-12-16 21:08:09
阅读次数:
189
题目Same Tree通过率42.0%难度EasyGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are ...
分类:
其他好文 时间:
2014-12-13 17:46:52
阅读次数:
138
题目为:
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 and the nodes have the same value.
解题...
分类:
其他好文 时间:
2014-12-12 23:37:16
阅读次数:
308
SquaresTime Limit:3500MSMemory Limit:65536KTotal Submissions:16631Accepted:6328DescriptionA square is a 4-sided polygon whose sides have equal length ...
分类:
其他好文 时间:
2014-12-12 18:37:45
阅读次数:
147
【题目】
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of the nodes ...
分类:
其他好文 时间:
2014-12-12 11:44:41
阅读次数:
125
标题:Same Tree通过率:42%难度简单Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are st...
分类:
其他好文 时间:
2014-12-11 20:48:26
阅读次数:
164
题目
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of the nodes in...
分类:
其他好文 时间:
2014-12-11 17:21:24
阅读次数:
153
Squares
Time Limit: 3500MS
Memory Limit: 65536K
Total Submissions: 16615
Accepted: 6320
Description
A square is a 4-sided polygon whose sides have equal length and adja...
分类:
其他好文 时间:
2014-12-10 22:52:54
阅读次数:
219
Write a function to find the longest common prefix string amongst an array of strings.分析:这道题没什么好方法,暴力搜索比较即可,在用C++实现时有一个小trick就是"Ifposis equal to thest...
分类:
其他好文 时间:
2014-12-09 13:42:01
阅读次数:
143