Skip to main content
All Questions

Set Matrix Zeroes

Unlock detailed company stats for this questionUpgrade
Given a matrix of size M x N, set all rows and columns to zeroes where an element is zero, using constant space complexity.

Community answers

No answers contributed by the community yet.

Related questions

01 Matrix

Related courses

Course

Data Engineering Interview Prep

Land your dream data engineering role at Meta, Google, Amazon, Microsoft, Walmart, DoorDash, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates. Practice data modeling, pipeline design, SQL, coding, behavioral interviews, and more.

Course

Software Engineering Interview Prep

Land your dream software engineering role at Google, Amazon, Microsoft, Meta, Apple, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates—practice data structures, algorithms, system design, people management, behavioral interviews, and more.