摘要: [Algo] 优化枚举2 1. K个逆序对数组 // 1. K个逆序对数组 // https://leetcode.cn/problems/k-inverse-pairs-array/ int kInversePairs(int n, int k) { vector<vector<int>> dp( 阅读全文
posted @ 2025-03-28 10:51 yaoguyuan 阅读(15) 评论(0) 推荐(0)
摘要: [Algo] 优化枚举 1. 买卖股票的最佳时机 III // 1. 买卖股票的最佳时机 III // https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-iii/ int maxProfit(vector<int>& price 阅读全文
posted @ 2025-03-28 10:51 yaoguyuan 阅读(11) 评论(0) 推荐(0)