Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays. 题目意思是给…
分类:LeetCode
[LeetCode] Heaters 加热器
Winter is coming! Your first job during the contest is to design a standard heater with fixed warm radi…
[LeetCode] Course Schedule III 课程清单之三
There are n different online courses numbered from 1 to n. Each course has som…
[LeetCode] Image Smoother 图片平滑器
Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to m…
LeetCode | 4Sum
题目: Given an array S of n integers, are there elements a, b, c, and d&…
LeetCode | First Missing Positive
题目: Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0]&…
[Leetcode] Sqrt 开方
Sqrt Implement int sqrt(int x). Compute and return the square root of x. 二分搜索 复杂度 时间 O(1) 因为整数长度有限 空间 O(1) 思路 …
LeetCode 5. Longest Palindromic Substring
Total Accepted: 200641 Total Submissions: 798974 Difficulty: Medium Contributor: LeetCode Given a string s, fi…
[array] leetcode - 31. Next Permutation - Medium
leetcode – 31. Next Permutation – Medium descrition Implement next permutation, which rearranges n…
算法相关文章索引(1)
基本常识 时间复杂度百度百科 空间复杂度百度百科 空间复杂度是O(1)是什么意思 O(1)指额外空间相对于输入数据量来说是常数 中位数百度百科 常见OJ评判结果对照表,作为ACMer你懂得! 什么是极小化极大算法? Mi…
LeetCode | 4. Median of Two Sorted Arrays
题目链接:https://leetcode.com/problems/median-of-two-sorted-arrays/ 题目难度:Hard 题目描述: There are two sorted arrays nu…
Connecting Graph
Given n nodes in a graph labeled from1 to `n. There is no edges in the graph at beginning. You need to support…