随笔分类 - LeetCode
LeetCode解题随感、思路与总结。
欢迎大家评论、交流并拍砖。。
摘要:链接: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...
阅读全文
摘要:链接: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.【中文描述】...
阅读全文
摘要:链接:https://leetcode.com/problems/trapping-rain-water/【描述】Givennnon-negative integers representing an elevation map where the width of each bar is 1, c...
阅读全文
摘要:链接:https://leetcode.com/problems/longest-valid-parentheses/【描述】Given a string containing just the characters'('and')', find the length of the longest ...
阅读全文
摘要:链接: https://leetcode.com/problems/generate-parentheses/【描述】Givennpairs of parentheses, write a function to generate all combinations of well-formed pa...
阅读全文
摘要:https://leetcode.com/problems/3sum-closest/【描述】Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, targ...
阅读全文
摘要:https://leetcode.com/problems/regular-expression-matching/【描述】Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i...
阅读全文
摘要:https://leetcode.com/problems/regular-expression-matching/【描述】Implement regular expression matching with support for'.'and'*'.'.' Matches any single c...
阅读全文
摘要:【题目】LeetCode(9): Palindrome NumberURL: https://leetcode.com/problems/palindrome-number/【描述】Determine whether an integer is a palindrome. Do this witho...
阅读全文
摘要:【题目】LeetCode(8): String to Integer (atoi)URL: https://leetcode.com/problems/string-to-integer-atoi/【描述】Implementatoito convert a string to an integer....
阅读全文
摘要:【题目】LeetCode(6): ZigZag ConversionURL: https://leetcode.com/problems/zigzag-conversion/【描述】The string"PAYPALISHIRING"is written in a zigzag pattern on...
阅读全文
摘要:【题目】LeetCode(5): Longest Palindromic SubstringURL: https://leetcode.com/problems/longest-palindromic-substring/【描述】Given a stringS, find the longest p...
阅读全文
摘要:【题目】LeetCode(2): Add Two NumbersURL: https://leetcode.com/problems/add-two-numbers/【描述】You are given two linked lists representing two non-negative nu...
阅读全文
摘要:【题目】Two Sum【描述】Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indice...
阅读全文
摘要:【题目】Median of Two Sorted Arrays【描述】There are two sorted arraysnums1andnums2of size m and n respectively. Find the median of the two sorted arrays. The...
阅读全文