文章 2025-06-02 来自:开发者社区

【LeetCode 热题100】DP 实战进阶:最长递增子序列、乘积最大子数组、分割等和子集(力扣300 / 152/ 416 )(Go语言版)

🧠 DP 实战进阶:最长递增子序列、乘积最大子数组、分割等和子集(LeetCode 300 / 152 / 416) 在动态规划的学习路径中,这三道题常被视作进阶经典,它们分别对应不同的状态定义与优化思路: 📈 300. 最长递增子序列(LIS)...

文章 2022-02-17 来自:开发者社区

​LeetCode刷题实战442:数组中重复的数据

今天和大家聊的问题叫做 数组中重复的数据,我们先来看题面:https://leetcode-cn.com/problems/find-all-duplicates-in-an-array/Given an integer array nums of length n where all the integers of nums are in the range [1, n] and each i....

文章 2022-02-17 来自:开发者社区

​LeetCode刷题实战410:分割数组的最大值

今天和大家聊的问题叫做 分割数组的最大值,我们先来看题面:https://leetcode-cn.com/problems/split-array-largest-sum/Given an array nums which consists of non-negative integers and an integer m, you can split the array into m non-....

文章 2022-02-17 来自:开发者社区

​LeetCode刷题实战215:数组中的第K个最大元素

今天和大家聊的问题叫做 数组中的第K个最大元素,我们先来看题面:https://leetcode-cn.com/problems/kth-largest-element-in-an-array/Given an integer array nums and an integer k, return the kth largest element in the array.Note that it....

文章 2022-02-17 来自:开发者社区

​LeetCode刷题实战189:旋转数组

今天和大家聊的问题叫做 旋转数组,我们先来看题面:https://leetcode-cn.com/problems/rotate-array/Given an array, rotate the array to the right by k steps, where k is non-negative.Follow up:Try to come up as many solutions as ....

文章 2022-02-17 来自:开发者社区

​LeetCode刷题实战153:寻找旋转排序数组中的最小值

今天和大家聊的问题叫做 寻找旋转排序数组中的最小值,我们先来看题面:https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array/Suppose an array of length n sorted in ascending order is rotated between 1 and n times. For ex....

文章 2022-02-17 来自:开发者社区

​LeetCode刷题实战152:乘积最大子数组

今天和大家聊的问题叫做 乘积最大子数组,我们先来看题面:https://leetcode-cn.com/problems/maximum-product-subarray/Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which ....

文章 2022-02-17 来自:开发者社区

​LeetCode刷题实战34:在排序数组中查找元素的第一个和最后一个位置

今天和大家聊的问题叫做在排序数组中查找元素的第一个和最后一个位置,我们先来看题面:https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-arrayGiven an array of integers nums sorted in ascending order, find the st....

文章 2022-02-17 来自:开发者社区

​LeetCode刷题实战26:删除排序数组中的重复项

今天和大家聊的问题叫做 删除排序数组中的重复项,我们先来看题面:https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/Given a sorted array nums, remove the duplicates in-place such that each element appear only once ....

文章 2022-02-16 来自:开发者社区

​LeetCode刷题实战384:打乱数组

今天和大家聊的问题叫做 打乱数组,我们先来看题面:https://leetcode-cn.com/problems/shuffle-an-array/Given an integer array nums, design an algorithm to randomly shuffle the array. All permutations of the array should be equa....

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

算法编程

开发者社区在线编程频道官方技术圈。包含算法资源更新,周赛动态,每日一题互动。

+关注