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.
Sorry, I didn't know how to embed code in the message. Now I have realised that triple backticks (like in github) seem to do the job, so here is the code:
If you run both versions on the large input01.txt (with 823 in the first line and total filesize 10390383 bytes --- it is one of their test cases) you will see that this particular implementation of your idea is slower.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
The Captain's Room
You are viewing a single comment's thread. Return to all comments →
Sorry, I didn't know how to embed code in the message. Now I have realised that triple backticks (like in github) seem to do the job, so here is the code:
If you run both versions on the large input01.txt (with 823 in the first line and total filesize 10390383 bytes --- it is one of their test cases) you will see that this particular implementation of your idea is slower.