上一页 1 2 3 4 5 6 7 8 9 10 ··· 22 下一页
摘要: Reverse Words in a StringGiven an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Updat... 阅读全文
posted @ 2015-11-15 20:34 `Liok 阅读(435) 评论(0) 推荐(0) 编辑
摘要: Longest Increasing SubsequenceGiven an unsorted array of integers, find the length of longest increasing subsequence.For example,Given[10, 9, 2, 5, 3,... 阅读全文
posted @ 2015-11-15 20:16 `Liok 阅读(699) 评论(0) 推荐(0) 编辑
摘要: Range Sum Query 2D - ImmutableGiven a 2D matrixmatrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1,col1) ... 阅读全文
posted @ 2015-11-12 14:35 `Liok 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Range Sum Query - ImmutableGiven an integer arraynums, find the sum of the elements between indicesiandj(i≤j), inclusive.Example:Given nums = [-2, 0, ... 阅读全文
posted @ 2015-11-11 17:28 `Liok 阅读(578) 评论(0) 推荐(0) 编辑
摘要: Unique Binary Search Trees IIGivenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your pr... 阅读全文
posted @ 2015-11-08 22:09 `Liok 阅读(402) 评论(0) 推荐(0) 编辑
摘要: Unique Binary Search TreesGivenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a to... 阅读全文
posted @ 2015-11-08 22:02 `Liok 阅读(362) 评论(0) 推荐(0) 编辑
摘要: Remove Invalid ParenthesesRemove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results.Note: ... 阅读全文
posted @ 2015-11-07 23:37 `Liok 阅读(750) 评论(0) 推荐(0) 编辑
摘要: Find Median from Data StreamMedian is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the m... 阅读全文
posted @ 2015-11-01 21:03 `Liok 阅读(767) 评论(0) 推荐(0) 编辑
摘要: Binary Tree Level Order Traversal IIGiven a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level... 阅读全文
posted @ 2015-11-01 12:14 `Liok 阅读(319) 评论(0) 推荐(0) 编辑
摘要: Binary Tree Level Order TraversalGiven a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).Fo... 阅读全文
posted @ 2015-11-01 12:12 `Liok 阅读(840) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 22 下一页