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 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.
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 →
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.