Find Valid Matrix Given Row and Column Sums

mediumSolve on LeetCodeLast edited: August 2, 2025