← Microsoft questions

Matrix summation challenge / before matrix from after matrix

Filed under Microsoft

Given an 'after-matrix' where each element A[i][j] is the sum of all elements in the 'before-matrix' from (0,0) to (i,j), reconstruct the original matrix.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.