上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页
摘要: 题目:Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given "25525511135",return [... 阅读全文
posted @ 2014-08-02 07:47 爱做饭的小莹子 阅读(4138) 评论(0) 推荐(1) 编辑
摘要: 题目:Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each ... 阅读全文
posted @ 2014-08-02 00:24 爱做饭的小莹子 阅读(2871) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same re... 阅读全文
posted @ 2014-08-01 10:11 爱做饭的小莹子 阅读(5416) 评论(0) 推荐(1) 编辑
摘要: 题目:Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will ... 阅读全文
posted @ 2014-08-01 09:55 爱做饭的小莹子 阅读(4143) 评论(0) 推荐(0) 编辑
摘要: 题目:Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled ... 阅读全文
posted @ 2014-08-01 09:43 爱做饭的小莹子 阅读(4718) 评论(0) 推荐(2) 编辑
摘要: 题目:Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For exam... 阅读全文
posted @ 2014-08-01 09:28 爱做饭的小莹子 阅读(3373) 评论(1) 推荐(0) 编辑
摘要: 题目:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: ... 阅读全文
posted @ 2014-08-01 09:09 爱做饭的小莹子 阅读(3661) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is the root-to-leaf path 1->2->3 w... 阅读全文
posted @ 2014-08-01 06:08 爱做饭的小莹子 阅读(1969) 评论(2) 推荐(0) 编辑
摘要: 题目:Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.题解:这道题跟pre... 阅读全文
posted @ 2014-08-01 05:59 爱做饭的小莹子 阅读(1658) 评论(0) 推荐(0) 编辑
摘要: 题目:Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.题解: 1 ... 阅读全文
posted @ 2014-08-01 05:44 爱做饭的小莹子 阅读(5267) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页