题目链接: https://leetcode-cn.com/problems/JEj789 难度: <code>Medium</code> 标签: <code>数组</code> <code>动态规划</code>