LeetCode 73. Set Matrix Zeroes
·
Algorithm/문제풀이
Set Matrix Zeroes - LeetCodeCan you solve this real interview question? Set Matrix Zeroes - Given an m x n integer matrix matrix, if an element is 0, set its entire row and column to 0's. You must do it in place [https://en.wikipedia.org/wiki/In-place_algorithm]. Example 1: [httpsleetcode.com 문제 설명m x n 크기의 정수 행렬 matrix가 주어진다.행렬의 원소 중 0이 존재할 경우, 해당 원소가 속한 행과 열의 모든 원소를 0으로 변경해야 한다. 추가 도전- O(mn)..