3225. Maximum Score From Grid Operations
php
dev.to
3225. Maximum Score From Grid Operations Difficulty: Hard Topics: Principal, Array, Dynamic Programming, Matrix, Prefix Sum, Biweekly Contest 135 You are given a 2D matrix grid of size n x n. Initially, all cells of the grid are colored white. In one operation, you can select any cell of indices (i, j), and color black all the cells of the jᵗʰ column starting from the top row down to the iᵗʰ row. The grid score is the sum of all grid[i][j] such that cell (i, j) is white, and it has a horizon