In a 2 dimensional array grid, each value grid[i][j] represents the height of a building located there. We are allowed to increase the height of any number of buildings, by any amount (the amounts can be different for different buildings). Height 0 is considered to be a building as well.
执行用时 :12 ms, 在所有 C++ 提交中击败了66.23%的用户 内存消耗 :9.6 MB, 在所有 C++ 提交中击败了85.04%的用户