Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1
/ 2 2
/ \ / 3 4 4 3
But the following is not...
分类:
其他好文 时间:
2015-06-12 10:13:12
阅读次数:
166
Secret Code问题描述The Sarcophagus itself is locked by a secret numerical code. When somebody wants to open it, he must know the code and set it exactly o...
分类:
其他好文 时间:
2015-06-04 15:26:25
阅读次数:
139
The number 3797 has an interesting property. Being prime itself, it is possible to continuously remove digits from left to right, and remain prime at each stage: 3797, 797, 97, and
7. Similarly we c...
分类:
其他好文 时间:
2015-06-04 11:56:43
阅读次数:
84
Hie with the PieTime Limit:2000MSMemory Limit:65536KTotal Submissions:5205Accepted:2790DescriptionThe Pizazz Pizzeria prides itself in delivering pizz...
分类:
其他好文 时间:
2015-06-01 18:39:49
阅读次数:
101
# The ServerName
directive sets the request scheme, hostname and port that
# the server
uses to identify itself. This is used when creating
# redirection
URLs. In the context o...
分类:
Web程序 时间:
2015-06-01 09:42:25
阅读次数:
147
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1111Problem DescriptionThe Sarcophagus itself is locked by a secret numerical code. When somebody wants...
分类:
其他好文 时间:
2015-05-30 22:28:08
阅读次数:
387
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:
编程语言 时间:
2015-05-22 01:54:09
阅读次数:
189
SwapNodesinPairsTotalAccepted:47624TotalSubmissions:146226MySubmissionsQuestionSolutionGivenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,Given1->2->3->4,youshouldreturnthelistas2->1->4->3.Youralgorithmshoulduseonlyconst..
分类:
其他好文 时间:
2015-05-20 02:13:19
阅读次数:
106
Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:
1
/ 2 2
/ \ / 3 4 ...
分类:
其他好文 时间:
2015-05-17 18:48:13
阅读次数:
118
题目:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / ...
分类:
其他好文 时间:
2015-05-15 10:22:50
阅读次数:
125