← Samsung questions

Maximize rows with all 1s by toggling columns k times

Filed under Samsung

Given a binary matrix of dimensions n by m, you are allowed to toggle any column exactly k times. Determine the maximum number of rows that can have all 1s after performing the operations.

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 Samsung questions

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