Leetcode
hermito
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Leetcode862 Shortest Subarray with Sum at Least K
题目地址: https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/ 描述: Return the length of the shortest, non-empty, contiguous subarray of A with sum at least K. If there is no non-empty s...原创 2019-12-18 19:47:33 · 254 阅读 · 0 评论 -
Leetcode40 Combination Sum II
题目地址:https://leetcode.com/problems/combination-sum-ii/描述: Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candid...原创 2019-07-17 00:15:39 · 222 阅读 · 0 评论 -
HDU3068/Leetcode5 最长回文 (Manacher算法)
题目来源: http://acm.hdu.edu.cn/showproblem.php?pid=3068 https://leetcode.com/problems/longest-palindromic-substring/ 问题描述: 给出一个只由小写英文字符a,b,c...y,z组成的字符串S,求S中最长回文串的长度. 回文就是正反读都是一样的字符串,如aba, abba原创 2016-04-15 09:49:25 · 479 阅读 · 0 评论 -
LeetCode题目索引-难度及面试频率
ID 问题 难度 面试频率 数据结构 算法 1 Two Sum 2 5 array sort转载 2016-05-31 11:05:01 · 1086 阅读 · 0 评论 -
Leetcode10 Regular Expression Matching
题目地址: https://leetcode.com/problems/regular-expression-matching/ 描述: '.' Matches any single character. '*' Matches zero or more of the preceding element. The matching should cover the entire inpu原创 2016-07-19 21:02:53 · 402 阅读 · 0 评论 -
Leetcode11 Container With Most Water
题目地址: https://leetcode.com/problems/container-with-most-water/ 描述: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn suc原创 2016-07-21 17:26:43 · 373 阅读 · 0 评论 -
Leetcode22 Generate Parentheses
题目地址: https://leetcode.com/problems/generate-parentheses/ 描述: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. 分析 首先想到卡特兰数,根据递推公式h(n)= h(0)*原创 2016-07-24 22:13:31 · 421 阅读 · 0 评论 -
Leetcode29 Divide Two Integers
题目地址: https://leetcode.com/problems/divide-two-integers/ 描述: Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT. 分析 http://www.tuicool原创 2016-07-26 12:01:19 · 353 阅读 · 0 评论 -
Leetcode31 Next Permutation
题目地址: https://leetcode.com/problems/next-permutation/ 描述: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement i原创 2016-07-31 14:16:50 · 419 阅读 · 0 评论 -
Leetcode32 Longest Valid Parentheses
题目地址: https://leetcode.com/problems/longest-valid-parentheses/ 描述: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substrin原创 2016-08-02 14:08:13 · 411 阅读 · 0 评论
分享