摘要: 300. 最长递增子序列 一开始想的是深度遍历加剪枝,然后就时间超时了,判断能否加入最长递增子序列,代码如下: 查看代码 class Solution { public: int lengthOfLIS(vector<int>& nums) { int result = 0; int minn = 阅读全文
posted @ 2021-12-26 19:54 jozon 阅读(32) 评论(0) 推荐(0)