This is a verified interview question from Scaler-ai. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Are Matrices Same? - Scaler AI Online Assessment NSUT" covers key patterns like Arrays.
"Pattern: 45 min for DSA, 20 for Frontend, 15 for Backend ### Problem You are given two matrices A & B of equal sizes and you have to check whether two matrices are equal or not. NOTE: Both matrices are equal if A[i][j] = B[i][j] for all i and j in the given range. ### Input First argument is vector of vector of integers representing matrix A. Second argument is vector of vector of integers representing matrix B. ### Output Return 1 if both matrices are equal or return 0. "
Join thousands of developers practicing for Scaler-ai.