2014年6月13日

Leetcode:Binary Tree Zigzag Level Order Traversal

摘要: Description:Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next ... 阅读全文

posted @ 2014-06-13 21:37 soyscut 阅读(89) 评论(0) 推荐(0) 编辑

Leetcode:Partition List

摘要: Description:Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preser... 阅读全文

posted @ 2014-06-13 21:29 soyscut 阅读(111) 评论(0) 推荐(0) 编辑

Leetcode:Count and Say

摘要: Description:The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is re... 阅读全文

posted @ 2014-06-13 21:08 soyscut 阅读(137) 评论(0) 推荐(0) 编辑

Leetcode:Triangle

摘要: Decription:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, gi... 阅读全文

posted @ 2014-06-13 20:53 soyscut 阅读(298) 评论(0) 推荐(0) 编辑

Leetcode: Subsets & SubsetsII

摘要: Subsets Description:Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solu... 阅读全文

posted @ 2014-06-13 20:46 soyscut 阅读(169) 评论(0) 推荐(0) 编辑

导航