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.
The Grid Search
The Grid Search
Sort by
recency
|
899 Discussions
|
Please Login in order to post a comment
Here is my solution in PHP
never says it should be exactly under... reputation management experts it states if the patterns is found in the string... it is found, they are not at the same indexes except IPTV, but I didn't found that requirement in the specifications.
Here is problem solution in PYthon, Java, C++, C and Javascript - https://programmingoneonone.com/hackerrank-the-grid-search-problem-solution.html
never says it should be exactly under... it states if the patterns is found in the string... it is found, they are not at the same indexes except IPTV, but I didn't found that requirement in the specifications.
The reason why the output should be NO is because the 21 is not directly below the 12 in the array. If the 21 was directly below the 12, like a cheap Carfax reveals underlying structure, then the output would be YES.