上一页 1 2 3 4 5 6 ··· 8 下一页

2015年6月17日

221. Maximal Square

摘要: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following matr... 阅读全文

posted @ 2015-06-17 07:40 shini 阅读(99) 评论(0) 推荐(0) 编辑

226. Invert Binary Tree

摘要: Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1Trivia:This problem was inspired bythis... 阅读全文

posted @ 2015-06-17 07:23 shini 阅读(82) 评论(0) 推荐(0) 编辑

2015年6月12日

225. Implement Stack using Queues

摘要: Implement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top()... 阅读全文

posted @ 2015-06-12 08:23 shini 阅读(101) 评论(0) 推荐(0) 编辑

2015年6月9日

222. Count Complete Tree Nodes

摘要: Given acompletebinary tree, count the number of nodes.Definition of a complete binary tree fromWikipedia:In a complete binary tree every level, except... 阅读全文

posted @ 2015-06-09 09:13 shini 阅读(141) 评论(0) 推荐(0) 编辑

223. Rectangle Area

摘要: Find the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top right corner as shown ... 阅读全文

posted @ 2015-06-09 08:45 shini 阅读(77) 评论(0) 推荐(0) 编辑

2015年6月5日

40. Combination Sum II

摘要: Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ... 阅读全文

posted @ 2015-06-05 07:34 shini 阅读(103) 评论(0) 推荐(0) 编辑

39. Combination Sum

摘要: Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num... 阅读全文

posted @ 2015-06-05 07:27 shini 阅读(151) 评论(0) 推荐(0) 编辑

38. Count and Say

摘要: The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw... 阅读全文

posted @ 2015-06-05 07:10 shini 阅读(151) 评论(0) 推荐(0) 编辑

2015年6月4日

38. Valid Sudoku

摘要: Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with ... 阅读全文

posted @ 2015-06-04 09:08 shini 阅读(130) 评论(0) 推荐(0) 编辑

35. Search Insert Position

摘要: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or... 阅读全文

posted @ 2015-06-04 08:30 shini 阅读(147) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 8 下一页

导航