目录

力扣699. 掉落的方块

力扣699. Falling Squares(掉落的方块)

计算每次掉落方块后的最大高度。

示例 1:

../posts/01_学习/87_LeetCode/0699_掉落的方块/img/0699-1-description.png

输入:[[1,2],[2,3],[6,1]]
输出:[2,5,5]

提示:

  • 1 <= positions.length <= 1000
  • 1 <= lefti <= 10^8
  • 1 <= sideLengthi <= 10^6