← Microsoft questions

Matrix zeroing and missing element in sorted array

Filed under Microsoft

Part 1: Given a 2D matrix and a target value, if an element matches the target, set its entire row and column to zero. Part 2: Given a sorted array of unique elements from 1 to n+1 of size n, find the…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.