Boostable

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年8月31日

摘要: LeetCode: Decode WaysA message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given a... 阅读全文
posted @ 2014-08-31 22:37 Boostable 阅读(250) 评论(0) 推荐(0) 编辑

摘要: LeetCode: SubsetsGiven a set of distinct integers, S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The soluti... 阅读全文
posted @ 2014-08-31 22:25 Boostable 阅读(285) 评论(0) 推荐(0) 编辑

摘要: LeetCode: Reverse Linked ListReverse a linked list from position m to n. Do it in-place and in one-pass. For example:Given 1->2->3->4->5->NULL, m = 2 ... 阅读全文
posted @ 2014-08-31 22:11 Boostable 阅读(314) 评论(0) 推荐(0) 编辑

摘要: LeetCode: Restore IP AddressesGiven a string containing only digits, restore it by returning all possible valid IP address combinations. For example:G... 阅读全文
posted @ 2014-08-31 22:00 Boostable 阅读(230) 评论(0) 推荐(0) 编辑

摘要: LeetCode: Binary Tree Inorder TraversalGiven a binary tree, return the inorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}... 阅读全文
posted @ 2014-08-31 21:49 Boostable 阅读(300) 评论(0) 推荐(0) 编辑

摘要: LeetCode: Unique Binary Search TreesGiven n, how many structurally unique BST's (binary search trees) that store values 1...n? For example,Given n = 3... 阅读全文
posted @ 2014-08-31 21:43 Boostable 阅读(221) 评论(0) 推荐(0) 编辑