随笔分类 -  编程篇

摘要:问题描述 Given an integer array nums, find the subarray with the largest sum, and return its sum. 给定一个数组nums, 找到一个子数组。使它的和最大,返回子数组 例子 Input: nums = [-2,1, 阅读全文
posted @ 2024-05-09 22:29 金字塔下的蜗牛 阅读(26) 评论(0) 推荐(0)
摘要:最长递增子序列 连接:https://leetcode.com/problems/longest-increasing-subsequence/description/ 问题描述 Given an integer array nums, return the length of the longes 阅读全文
posted @ 2024-05-08 22:54 金字塔下的蜗牛 阅读(23) 评论(0) 推荐(0)