This is a quiz lesson. Click the button below to start the quiz.
Question 1/5
To set matrix zeroes (if an element is 0, its entire row and column become 0) in O(1) extra space, what is a clever way to mark rows and columns that need to be zeroed out?