摘要: https://leetcode cn.com/problems/best time to buy and sell stock ii/comments/87652 第一种方法:深度优先搜索,时间复杂度O(2^n),这个通过不了LeetCode,不过能work,测试了多组测试样例是正确的 第二种方法 阅读全文
posted @ 2019-09-18 16:40 Mona的单曲循环 阅读(106) 评论(0) 推荐(0) 编辑