- 博客(9)
- 收藏
- 关注
原创 题目翻译*
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 390
原创 题目翻译*
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 174
原创 题目翻译*
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 247
原创 题目翻译*
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 357
原创 题目翻译*
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 139
原创 题目翻译*
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 152
原创 题目翻译*
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 492
原创 题目翻译*
First Bad Version - LeetCodeFirst Bad VersionYou are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed based on the previo
2022-01-19 20:23:32 162
原创 *题目翻译
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 165
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人