摘要:
654. Maximum Binary Tree 问题: 用给定的数组,构成最大二叉树。 从数组中找到最大值,作为root,其index以左,作为左子树。index以右,作为右子树。 Example 1: Input: [3,2,1,6,0,5] Output: return the tree ro 阅读全文
摘要:
参考:团灭股票问题 base问题:188. Best Time to Buy and Sell Stock IV 问题: 股票问题: 给出一组一支股票每日的价格数组。prices[] 每一天的操作可以为:买buy,卖sell,不操作rest 在第二次buy之前,需要离上一次sell隔一天冷静期,求可 阅读全文