2014年5月8日

Generate Parentheses

摘要: Link:http://oj.leetcode.com/problems/generate-parentheses/Givennpairs of parentheses, write a function to generate all combinations of well-formed par... 阅读全文

posted @ 2014-05-08 00:07 Atlas-Zzz 阅读(146) 评论(0) 推荐(0) 编辑

2014年5月7日

N-Queens

摘要: Link:http://oj.leetcode.com/problems/n-queens/Given an integern, return all distinct solutions to then-queens puzzle.Each solution contains a distinct... 阅读全文

posted @ 2014-05-07 23:26 Atlas-Zzz 阅读(124) 评论(0) 推荐(0) 编辑

Sort Colors

摘要: Link:http://oj.leetcode.com/problems/sort-colors/Given an array withnobjects colored red, white or blue, sort them so that objects of the same color a... 阅读全文

posted @ 2014-05-07 10:21 Atlas-Zzz 阅读(128) 评论(0) 推荐(0) 编辑

N-Queens II

摘要: Link:http://oj.leetcode.com/problems/n-queens-ii/Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number ... 阅读全文

posted @ 2014-05-07 09:09 Atlas-Zzz 阅读(165) 评论(0) 推荐(0) 编辑

2014年5月5日

Climbing Stairs

摘要: Link:http://oj.leetcode.com/problems/climbing-stairs/You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb ... 阅读全文

posted @ 2014-05-05 05:34 Atlas-Zzz 阅读(138) 评论(0) 推荐(0) 编辑

Best Time to Buy and Sell Stock II

摘要: Link:http://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/Say you have an array for which theithelement is the price of a given stock on... 阅读全文

posted @ 2014-05-05 01:09 Atlas-Zzz 阅读(277) 评论(0) 推荐(0) 编辑

2014年5月4日

Binary Tree Level Order Traversal II

摘要: Link:http://oj.leetcode.com/problems/binary-tree-level-order-traversal-ii/Given a binary tree, return thebottom-up level ordertraversal of its nodes' ... 阅读全文

posted @ 2014-05-04 03:46 Atlas-Zzz 阅读(173) 评论(0) 推荐(0) 编辑

Binary Tree Level Order Traversal

摘要: Link:http://oj.leetcode.com/problems/binary-tree-level-order-traversal/Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, ... 阅读全文

posted @ 2014-05-04 03:38 Atlas-Zzz 阅读(201) 评论(0) 推荐(0) 编辑

Binary Tree Inorder Traversal

摘要: Link:http://oj.leetcode.com/problems/binary-tree-inorder-traversal/Given a binary tree, return theinordertraversal of its nodes' values.For example:Gi... 阅读全文

posted @ 2014-05-04 02:20 Atlas-Zzz 阅读(131) 评论(0) 推荐(0) 编辑

2014年5月3日

Binary Tree Postorder Traversal

摘要: Link:http://oj.leetcode.com/problems/binary-tree-postorder-traversal/Given a binary tree, return thepostordertraversal of its nodes' values.For exampl... 阅读全文

posted @ 2014-05-03 23:33 Atlas-Zzz 阅读(108) 评论(0) 推荐(0) 编辑

导航