Loading...
The Zero Propagator
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- mid, senior
Problem
A data cleaning pipeline processes sensor matrices where a zero value indicates a faulty cell that corrupts its entire row and column. Write a function that takes a matrix and sets the entire row and column of any zero element to zero. Modify in-place and return the matrix.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.