← All problemsSign in

Find the Grid

Your task for this problem is simple. Given two 2D matrices, you have to report whether or not the second matrix exist in first one or not. Example:- 1234567890 0987654321 1111111111 1111111111 2222222222 Assume we need to look for the following 2D pattern: 876543 111111 111111 Yes, the pattern exist! but if we look for, 999 999 No, the pattern does not exist! Input Input description. -

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start