Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2015-04-04 22:22:21
阅读次数:
229
1.题目要求Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For ...
分类:
其他好文 时间:
2015-04-04 16:36:31
阅读次数:
105
Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exampl...
分类:
其他好文 时间:
2015-04-04 16:35:06
阅读次数:
102
LeetCode104:Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path fr...
分类:
其他好文 时间:
2015-04-04 11:52:56
阅读次数:
93
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.
For example:
Given the following binary tree,
1...
分类:
其他好文 时间:
2015-04-04 09:10:35
阅读次数:
135
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.
For example:
Given the following binary tree,
1...
分类:
其他好文 时间:
2015-04-04 09:10:27
阅读次数:
119
Longest Palindromic Substring问题:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and th...
分类:
其他好文 时间:
2015-04-03 17:06:38
阅读次数:
112
方法摘要1 char charAt(intindex) 返回指定索引处的char值。 index-char值的索引。2 string concat(Stringstr)将指定字符串连接到此字符串的结尾。 str- 连接到此String结尾的String。 subs...
分类:
编程语言 时间:
2015-04-03 15:06:39
阅读次数:
124
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:
其他好文 时间:
2015-04-03 11:10:45
阅读次数:
102
LeetCode #Longest Substring Without Repeating Characters#
折腾了一回,第一感觉就是没有感觉...这种没技巧的话暴力是不现实的..而后发现其实没有很好理解题目的意
思考过么?究竟什么是最长的子字符串
这里有个很要命的概念, 子字符串,别小看这家伙.是搞定题目的关键.
"abcduiwe" 这...
分类:
其他好文 时间:
2015-04-03 00:18:57
阅读次数:
115