← Nagarro questions

Check if Smaller Matrix is Sub-matrix of Larger Matrix

Filed under Nagarro

Given an M x N matrix A and a P x Q matrix B, determine whether matrix B exists as a contiguous sub-matrix within matrix A.

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

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