← Goldman Sachs questions

Find row with maximum zeros in a binary matrix

Filed under Goldman Sachs

Given an R x C binary matrix where each row consists of consecutive 0s followed by consecutive 1s, find the 0-based index of the row containing the maximum number of 0s, along with that maximum 0…

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 Goldman Sachs questions

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