leetcode 1605

By | October 13, 2020
Share the joy
  •  
  •  
  •  
  •  
  •  
  •  

The point is to assign each rowSum value to each cell in each row, assign each colCum value to each cell in each row.

For example, need to assign 6 to m[0][1], m[1][1], m[2][1].

Check this video for detail process.

transform