上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 22 下一页
摘要: Peeking IteratorGiven an Iterator class interface with methods:next()andhasNext(), design and implement a PeekingIterator that support thepeek()operat... 阅读全文
posted @ 2015-09-27 14:31 `Liok 阅读(503) 评论(0) 推荐(0) 编辑
摘要: Expression Add OperatorsGiven a string that contains only digits0-9and a target value, return all possibilities to addbinaryoperators (not unary)+,-, ... 阅读全文
posted @ 2015-09-20 23:47 `Liok 阅读(458) 评论(0) 推荐(0) 编辑
摘要: Different Ways to Add ParenthesesGiven a string of numbers and operators, return all possible results from computing all the different possible ways t... 阅读全文
posted @ 2015-09-20 17:23 `Liok 阅读(323) 评论(0) 推荐(0) 编辑
摘要: Move ZeroesGiven an arraynums, write a function to move all0's to the end of it while maintaining the relative order of the non-zero elements.For exam... 阅读全文
posted @ 2015-09-20 00:40 `Liok 阅读(817) 评论(0) 推荐(0) 编辑
摘要: Binary Tree Postorder TraversalGiven a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \... 阅读全文
posted @ 2015-09-19 21:39 `Liok 阅读(246) 评论(0) 推荐(0) 编辑
摘要: Binary Tree Inorder TraversalGiven a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ ... 阅读全文
posted @ 2015-09-15 00:19 `Liok 阅读(532) 评论(0) 推荐(0) 编辑
摘要: Binary Tree Preorder TraversalGiven a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ ... 阅读全文
posted @ 2015-09-13 22:56 `Liok 阅读(639) 评论(0) 推荐(0) 编辑
摘要: Search for a RangeGiven a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity ... 阅读全文
posted @ 2015-09-12 19:53 `Liok 阅读(382) 评论(0) 推荐(0) 编辑
摘要: First Bad VersionYou are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fa... 阅读全文
posted @ 2015-09-12 18:08 `Liok 阅读(381) 评论(0) 推荐(0) 编辑
摘要: Trapping Rain WaterGivennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to tr... 阅读全文
posted @ 2015-09-05 22:33 `Liok 阅读(558) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 22 下一页