Frage im Vorstellungsgespräch bei NVIDIA

The first was leetcode Set Matrix Zeroes. The LeetCode problem Set Matrix Zeroes is a classic 2D array manipulation problem. The description is as follows: You are given an 𝑚 × 𝑛 m×n matrix of integers. If any element is 0, you must set its entire row and column to 0. In other words, for each cell that contains 0, all cells in the same row and column should be changed to 0.