摘要: 问题描述 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 金字塔下的蜗牛 阅读(19) 评论(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 金字塔下的蜗牛 阅读(17) 评论(0) 推荐(0)
摘要: 目录前述第二章:变量、表达式、和语句第三章:函数第五章:条件和递归第六章:有返回数值的函数第七章: 迭代第八章:字符串第十章:列表第十一章:词典第十二章:tuple第十四章:文件14.2 读和写14.3 格式化字符串,两种方式14.4 os模块14.5 读写异常14.7 pickle14.9 模块相 阅读全文
posted @ 2024-05-08 21:06 金字塔下的蜗牛 阅读(30) 评论(0) 推荐(0)