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.
Hey I had my second try, which was the same as yours above. It failed test case #5. Then I figured that test case #5 includes G of dimension 1000*1000, in which case you have too many "daffuq"'s to compare with P. That exceeds the time complexity required.
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 →
Hey I had my second try, which was the same as yours above. It failed test case #5. Then I figured that test case #5 includes G of dimension 1000*1000, in which case you have too many "daffuq"'s to compare with P. That exceeds the time complexity required.