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.
One mate resolve this reading lines as string, and doing indexOf from pattern lines and checking indexOf of each line are equals than previous indexOf. Tests cases went all fine for him and obtained maximum score, but this test failed for him.
My solution checks matrix positions and this case works fine and tests too.
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 →
this totally needs to be added.
One mate resolve this reading lines as string, and doing indexOf from pattern lines and checking indexOf of each line are equals than previous indexOf. Tests cases went all fine for him and obtained maximum score, but this test failed for him.
My solution checks matrix positions and this case works fine and tests too.