Find the First Pattern-Matching Submatrix
Given an integer matrix matrix and a pattern matrix pattern, find a submatrix of matrix that matches the pattern and return its top-left coordinate.
Each cell in pattern is either an integer ...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
