after[x][y] is the sum of before[i][j] over all i <= x and j <= y. Given the after matrix, recover before.
Unlock detailed company stats for this questionUpgrade
For example, after = [[2,5],[7,17]] gives before = [[2,3],[5,7]].
Community answers
No answers contributed by the community yet.
Related courses

Course

