
1605. Find Valid Matrix Given Row and Column Sums
·
Algorithm
Find Valid Matrix Given Row and Column Sums - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 0 이상의 정수로 구성된 임의의 2차원 배열이 있다고 가정하자. n번째 row의 합 정보를 담고 있는 rowSum과 n번째 col의 합 정보를 담고 있는 colSum이 주어진다. rowSum과 colSum을 이용해 이 조건에 해당하는 2차원 배열을 반환하는 문제다. 정답은 여러 개가 나올 수 있고 그중 하나만 반환하면 된다. 예시 설..