2014年6月7日

Leetcode::Flatten Binary Tree to Linked List

摘要: Description:Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The... 阅读全文

posted @ 2014-06-07 20:55 soyscut 阅读(177) 评论(0) 推荐(0) 编辑

Leetcode::JumpGame

摘要: Description:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents... 阅读全文

posted @ 2014-06-07 20:18 soyscut 阅读(204) 评论(0) 推荐(0) 编辑

Leetcode::Pathsum & Pathsum II

摘要: PathsumDescription:Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equa... 阅读全文

posted @ 2014-06-07 11:33 soyscut 阅读(161) 评论(0) 推荐(0) 编辑

Leetcode::Longest Consecutive Sequence

摘要: Description:Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],... 阅读全文

posted @ 2014-06-07 11:09 soyscut 阅读(177) 评论(0) 推荐(0) 编辑

导航