You are given two arrays of nonnegative integers rowSum and colSum, where rowSum[i] represents the required sum of the elements in the colSum[j] represents the required sum of the elements in the
Construct and return a rowSum.length $ imes$ colSum.length consisting of nonnegative integers that satisfies the given row and column sums.
Note: If multiple valid matrices exist, you may return any of them.
Constraints:
rowSum.length, colSum.length
rowSum[i], colSum[i]
sum(rowSum) sum(colSum)
You are given two arrays of nonnegative integers rowSum and colSum, where rowSum[i] represents the required sum of the elements in the colSum[j] represents the required sum of the elements in the
Construct and return a rowSum.length $ imes$ colSum.length consisting of nonnegative integers that satisfies the given row and column sums.
Note: If multiple valid matrices exist, you may return any of them.
Constraints:
rowSum.length, colSum.length
rowSum[i], colSum[i]
sum(rowSum) sum(colSum)