上一页 1 2 3 4 5 6 7 8 ··· 18 下一页
摘要: 题目:Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding elem... 阅读全文
posted @ 2014-08-06 03:13 爱做饭的小莹子 阅读(5347) 评论(2) 推荐(1) 编辑
摘要: 题目:Given two words (start and end), and a dictionary, find all shortest transformation sequence(s) from start to end, such that:Only one letter can b... 阅读全文
posted @ 2014-08-06 00:04 爱做饭的小莹子 阅读(3847) 评论(0) 推荐(0) 编辑
摘要: 题目:Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end, such that:Only one letter... 阅读全文
posted @ 2014-08-05 23:46 爱做饭的小莹子 阅读(5344) 评论(2) 推荐(0) 编辑
摘要: 题目:Given a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partition... 阅读全文
posted @ 2014-08-05 11:40 爱做饭的小莹子 阅读(5636) 评论(5) 推荐(2) 编辑
摘要: 题目:Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level ... 阅读全文
posted @ 2014-08-05 03:16 爱做饭的小莹子 阅读(3593) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).F... 阅读全文
posted @ 2014-08-05 03:09 爱做饭的小莹子 阅读(2194) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree... 阅读全文
posted @ 2014-08-05 03:01 爱做饭的小莹子 阅读(3447) 评论(0) 推荐(0) 编辑
摘要: 题目:Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space... 阅读全文
posted @ 2014-08-05 02:54 爱做饭的小莹子 阅读(3512) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains on... 阅读全文
posted @ 2014-08-04 11:22 爱做饭的小莹子 阅读(3271) 评论(0) 推荐(0) 编辑
摘要: 题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-... 阅读全文
posted @ 2014-08-04 11:15 爱做饭的小莹子 阅读(5667) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页