[LeetCode] 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 / \ ... 阅读全文
posted @ 2013-01-08 12:40 小刀初试 阅读(242) 评论(0) 推荐(0) 编辑

[LeetCode] Swap Nodes in Pairs 解题报告

摘要: Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your alg... 阅读全文
posted @ 2013-01-08 12:22 小刀初试 阅读(137) 评论(0) 推荐(0) 编辑

[LeetCode] Substring with Concatenation of All Words 解题报告

摘要: You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatena... 阅读全文
posted @ 2013-01-08 11:59 小刀初试 阅读(207) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示