We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Similar to test case 15 for which my code fails... maybe I need to maintain a list or vector of pairs which will have the column nos. of the starting and ending indices of each row of the test grid found as present in the main grid.
And so if the pattern really exists, then every pair of the list must be the same. Thus, check imposed... Right?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
The Grid Search
You are viewing a single comment's thread. Return to all comments →
Similar to test case 15 for which my code fails... maybe I need to maintain a list or vector of pairs which will have the column nos. of the starting and ending indices of each row of the test grid found as present in the main grid. And so if the pattern really exists, then every pair of the list must be the same. Thus, check imposed... Right?