1605. Find Valid Matrix Given Row and Column Sums

Question

CleanShot 2024-11-05 at 22.28.05.png

Code