InterviewDigestInterviewDigest

OA Practice Workspace

Technical2026-08-16

Set Matrix Zeroes (with constant space constraint)

AI-Expanded — inferred from the question title, not from the original candidate report

Given an m x n integer matrix, if an element is 0, set its entire row and column to 0. Implement an algorithm that performs this operation in-place using only O(1) additional space by utilizing the first row and first column of the matrix as markers.

Context & Summary

Held on BluePages platform for 1 hour and 45 minutes. Focused on optimal solutions and in-depth discussion on a project. Two DSA questions were asked.

💻 Coding practice works best on desktop.
Code editors are too cramped on mobile screens.