Algorithm · Capital One · Medium
You are handed a rectangular integer matrix grid and a smaller rectangular pattern pattern composed of rows of uppercase English letters (A–Z). Your task is to locate every position where the pattern can be overlaid on a sub‑rectangle of the grid so that the shape of equal and unequal values matches. More precisely, for a given placement whose top‑left corner is at (r, c), there must exist a one‑to‑one function (a bijection) between the letters that appear in the pattern and…
Checking your access…