摘要:
https://leetcode.com/problems/range-sum-query-2d-immutable/ 条件说sumRegion 会调很多次,如果每次都用双for 循环去累加的话就有太多重复计算了,所以可以实现cache 一下。 可以有两种cache 机制,一种是在初始化的时候就生成 阅读全文
posted @ 2016-12-30 16:10
Agentgamer
阅读(101)
评论(0)
推荐(0)
摘要:
https://leetcode.com/problems/integer-to-english-words/ 这题记得是《c 和指针》里的一道习题,三年前花了一晚上做过。现在花了大概40 分钟。 我的思路是三位三位的处理。三位与三位之间通过简单的用量级(Thousand, Million, Bil 阅读全文
posted @ 2016-12-30 10:57
Agentgamer
阅读(141)
评论(0)
推荐(0)

浙公网安备 33010602011771号