Set Matrix Zeroes (1) 썸네일형 리스트형 LeetCode: 73번 (Set Matrix Zeroes) [JAVA] 문제 링크 https://leetcode.com/problems/set-matrix-zeroes/ Set Matrix Zeroes - 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 풀이 전체적인 풀이 과정은 다음과 같다. 주어진 matrix 행과 열 길이만큼의 boolean 배열 row, col 생성 이중 for문을 통해 전체 matrix 배열을 돌며 해당 위치의 값에 따라 동작 만약 해당 값이 0이라면 해당 행과 열을 boolean 배열에 표시 후 해당 위치로.. 이전 1 다음