[Python/Java/JavaScript/Go] 遍历统计or 排序双指针 ... 如果令 cnt[x] 为当前x出现的次数,会发现 dp[i][x] 严格等于 cnt[x] + cnt[x + 1] 。
確定! 回上一頁