码迷,mamicode.com
首页 >  
搜索关键字:equal    ( 3393个结果
E - Puzzle( UVA-227)
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
Same Tree
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
leetcode----------Same Tree
题目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
LeetCode刷题之三:判断两个二叉树是否相同
题目为: 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
POJ 2002 Squares [hash]
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
【LeetCode】Partition List 解题报告
【题目】 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
leetcode------Same Tree
标题: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
【LeetCode】Partition List
题目 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
poj2002--Squares(n个点求正方形个数)
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
Leetcode: Longest Common Prefix
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!