You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The problem Grid Search specifies :
Given an array of strings of digits we have to find the occurrence of a given pattern of digits. In the grid and pattern arrays, each string represents a row in the grid. The Pattern is given and then the grid to be found is given .For example, consider the following grid:
The pattern begins at the second row and the third column of the grid and continues in the following two rows. The pattern is said to be present in the grid. The return value should be YES or NO, depending on whether the pattern is found. In this case, return YES.
Description
The problem Grid Search specifies :
Given an array of strings of digits we have to find the occurrence of a given pattern of digits. In the grid and pattern arrays, each string represents a row in the grid. The Pattern is given and then the grid to be found is given .For example, consider the following grid:
1234567890
0987654321
1111111111
1111111111
2222222222
The pattern array is:
876543
111111
111111
The pattern begins at the second row and the third column of the grid and continues in the following two rows. The pattern is said to be present in the grid. The return value should be YES or NO, depending on whether the pattern is found. In this case, return YES.
Eg.
10 10
7283455864
6731158619
8988242643
3830589324
2229505813
5633845374
6473530293
7053106601
0834282956
4607924137
3 4
9505
3845
3530
Output:- YES
DSA Problem
https://www.hackerrank.com/challenges/the-grid-search/problem
The text was updated successfully, but these errors were encountered: