โ† Zoho questions

Count Special Positions in Binary Matrix

Filed under Zoho

Given a binary matrix M of size A x B, find the number of 'special' positions (i, j) where M[i][j] == 1 and all other elements in row i and column j are 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 Zoho questions

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