
LetCode
足境
这个作者很懒,什么都没留下…
展开
-
Maximum Depth of Binary Tree [查找树的深度]
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 leaf node. /** * Definition for binary tree原创 2014-12-22 14:51:15 · 1091 阅读 · 0 评论 -
Longest Substring Without Repeating Characters (返回最长无字符重复的子串长度)
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For原创 2014-12-23 16:56:31 · 1067 阅读 · 0 评论 -
Reverse Nodes in k-Group [逆转K-Group链表]
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is原创 2014-12-25 10:12:22 · 1229 阅读 · 0 评论 -
ZigZag Conversion [Z 型字母转换]
he string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P A H N A P L S I I原创 2014-12-25 15:48:38 · 865 阅读 · 0 评论