Boostable

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 7 ··· 12 下一页

2014年9月1日

摘要: LeetCode: Gray CodeThe gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n represen... 阅读全文
posted @ 2014-09-01 21:53 Boostable 阅读(214) 评论(0) 推荐(0) 编辑

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 阅读(287) 评论(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 阅读(234) 评论(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) 编辑

2014年8月28日

摘要: LeetCode: Interleaving StringGiven s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example,Given:s1 = "aabcc",s2 = "dbbca"... 阅读全文
posted @ 2014-08-28 22:42 Boostable 阅读(297) 评论(0) 推荐(0) 编辑

摘要: LeetCode: Validata Binary Search TreeGiven a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The l... 阅读全文
posted @ 2014-08-28 22:29 Boostable 阅读(144) 评论(0) 推荐(0) 编辑

摘要: LeetCode: Recover Binary Search TreeTwo elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.... 阅读全文
posted @ 2014-08-28 22:26 Boostable 阅读(182) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 12 下一页