← Morgan Stanley questions

Submatrix with at most k zeros

Filed under Morgan Stanley

Given an n x n binary matrix containing zeros and ones, find the dimensions or area of a submatrix that contains at most k zeros.

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 Morgan Stanley questions

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