摘要: 链接:https://leetcode.com/problems/maximal-rectangle/【描述】Given a 2D binary matrix filled with '0's and '1's, find the largest rectangle containing all o... 阅读全文
posted @ 2015-10-20 10:20 RockIt 阅读(4142) 评论(1) 推荐(0) 编辑
摘要: 链接:https://leetcode.com/problems/set-matrix-zeroes/【描述】Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.【中文描述】... 阅读全文
posted @ 2015-10-17 06:14 RockIt 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode.com/problems/trapping-rain-water/【描述】Givennnon-negative integers representing an elevation map where the width of each bar is 1, c... 阅读全文
posted @ 2015-10-08 07:55 RockIt 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode.com/problems/longest-valid-parentheses/【描述】Given a string containing just the characters'('and')', find the length of the longest ... 阅读全文
posted @ 2015-10-05 14:15 RockIt 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 链接: https://leetcode.com/problems/generate-parentheses/【描述】Givennpairs of parentheses, write a function to generate all combinations of well-formed pa... 阅读全文
posted @ 2015-09-30 13:08 RockIt 阅读(970) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/3sum-closest/【描述】Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, targ... 阅读全文
posted @ 2015-09-22 11:11 RockIt 阅读(406) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/regular-expression-matching/【描述】Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i... 阅读全文
posted @ 2015-09-20 12:42 RockIt 阅读(392) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/regular-expression-matching/【描述】Implement regular expression matching with support for'.'and'*'.'.' Matches any single c... 阅读全文
posted @ 2015-09-20 05:30 RockIt 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 【题目】LeetCode(9): Palindrome NumberURL: https://leetcode.com/problems/palindrome-number/【描述】Determine whether an integer is a palindrome. Do this witho... 阅读全文
posted @ 2015-09-15 06:39 RockIt 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 【题目】LeetCode(8): String to Integer (atoi)URL: https://leetcode.com/problems/string-to-integer-atoi/【描述】Implementatoito convert a string to an integer.... 阅读全文
posted @ 2015-09-14 14:28 RockIt 阅读(350) 评论(0) 推荐(0) 编辑