![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
翻译
蕾塞-
这个作者很懒,什么都没留下…
展开
-
题目翻译*
Minimum Path Sum - LeetCodeMinimum Path SumGiven am x ngridfilled with non-negative numbers, find a path from top left to bottom right, which minimizes the sum of all numbers along its path.Note:You can only move either down or right at any point...原创 2022-01-28 22:34:04 · 402 阅读 · 0 评论 -
题目翻译*
Merge IntervalsGiven an arrayofintervalswhereintervals[i] = [starti, endi], merge all overlapping intervals, and returnan array of the non-overlapping intervals that cover all the intervals in the input.Example 1:Input: intervals = [[1,3],[2,6...原创 2022-01-27 22:22:54 · 179 阅读 · 0 评论 -
题目翻译*
3SumGiven an integer array nums, return all the triplets[nums[i], nums[j], nums[k]]such thati != j,i != k, andj != k, andnums[i] + nums[j] + nums[k] == 0.Notice that the solution set must not contain duplicate triplets.Example 1:Input: nums...原创 2022-01-26 21:50:21 · 251 阅读 · 0 评论 -
题目翻译*
Palindrome Number - LeetCodePalindrome NumberGiven an integerx, returntrueifxis palindrome integer.An integer is apalindromewhen it reads the same backward as forward.For example,121is a palindrome while123is not.Example 1:Input: ...原创 2022-01-24 22:15:30 · 362 阅读 · 0 评论 -
题目翻译*
Rotate Array - LeetCodeRotate ArrayGiven an array, rotate the array to the right byksteps, wherekis non-negative.Example 1:Input: nums = [1,2,3,4,5,6,7], k = 3Output: [5,6,7,1,2,3,4]Explanation:rotate 1 steps to the right: [7,1,2,3,4,5...原创 2022-01-22 22:56:17 · 143 阅读 · 0 评论 -
题目翻译*
Squares of a Sorted Array - LeetCodeSquares of a Sorted ArrayGiven an integer arraynumssorted innon-decreasingorder, returnan array ofthe squares of each numbersorted in non-decreasing order.Example 1:Input: nums = [-4,-1,0,3,10]Outpu...原创 2022-01-21 22:46:33 · 160 阅读 · 0 评论 -
题目翻译*
Search Insert PositionGiven a sorted array of distinct integers 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 order.You mustwrite an algorithm withO(log n)runtime com...原创 2022-01-20 17:20:41 · 496 阅读 · 0 评论 -
*题目翻译
Binary SearchGiven an array of integersnumswhich is sorted in ascending order, and an integertarget, write a function to searchtargetinnums. Iftargetexists, then return its index. Otherwise, return-1.Example 1:Input: nums = [-1,0,3,5,9,12],...原创 2022-01-18 12:47:11 · 169 阅读 · 0 评论