参考:https://blog.csdn.net/Yaokai_AssultMaster/article/details/79599809
https://zhuanlan.zhihu.com/p/34150142
http://www.cnblogs.com/TenosDoIt/p/3453089.html
看了google搜索出来的前三个讲解,两个是从上而下,用类实现的;另一个讲的从下往上,但是却没讲延迟更新
自己总结一下,用数组实现的带延迟更新的线段树
Leetcode 699. Falling Squares的解题报告