You are given an heights representing the heights of people standing in a grid.
A person at cell
In the same row: heightsheights
In the same column: heightsheights
Return an ans where ans[i][j] is the total number of people that the person at cell
Constraints:
heights.length
heights[i].length
heights[i][j]
You are given an heights representing the heights of people standing in a grid.
A person at cell
In the same row: heightsheights
In the same column: heightsheights
Return an ans where ans[i][j] is the total number of people that the person at cell
Constraints:
heights.length
heights[i].length
heights[i][j]