Given an m x n matrix, if an element is 0, set its entire row and column to 0's in-place.
Rules:
Constraints:
Examples:
// Example 1: 2x2 matrix let matrix1 = [ [0,1], [1,1] ]; setZeroes(matrix1); console.log(matrix1); // Output: [ // [0,0], // [0,1] // ] // Example 2: 3x3 matrix let matrix2 = [ [1,2,3], [4,0,5], [6,7,8] ]; setZeroes(matrix2); console.log(matrix2); // Output: [ // [1,0,3], // [0,0,0], // [6,0,8] // ]