This is a verified interview question from Media-net. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Binary matrices Media Net - IIT, Delhi" covers key patterns like Other.
"**Mode:** On-Campus **Exam Pattern:** 3 coding **OA Date:** 2026-10-06 ## binary matrices Given 2 matrices A and B of size N x N, all elements are either 0 or 1. We perform an operation on matrix A any number of times. We choose any 2 x 2 submatrix of A and make each element A[i][j] = A[i][j] XOR 1 for each i, j in this submatrix. Check if it is possible to convert A into B. Return 1 if possible and 0 if not. Problem Constraints: 2 <= |A| = |B| <= 10^3 0 <= A[i][j], B[i][j] <= 1 Input Format: The first argument is an integer array of array A. The second argument is an integer array of array B. Output Format: Return an integer, the answer to the problem."
Join thousands of developers practicing for Media-net.