698. 划分为k个相等的子集 nonlocal递归性能损失
代码 版本1 nonlocal class Solution: def canPartitionKSubset... » 阅读全文
代码 版本1 nonlocal class Solution: def canPartitionKSubset... » 阅读全文
今天终于搞定线段树,写了几道题,记录其中比较典型的一道模板题: lintcode 207 · 区间求和 II ... » 阅读全文
两种解法,发现用了回溯后跑分居然下降了。可能重复修改一条长list的代价要比重复构建list要大;也许pyth... » 阅读全文