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.
after going through all comments i found the string dimesnion is 1000*1000 and i have used simple brute force. thats why its taking so much time.
According to editorial, we have to use regex for pattern searching then only it will complete in estimated time.
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 →
after going through all comments i found the string dimesnion is 1000*1000 and i have used simple brute force. thats why its taking so much time.
According to editorial, we have to use regex for pattern searching then only it will complete in estimated time.