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.
Indeed so.
Kept banging my head against the keyboard for a couple of days...
Even invented algorithm faster than N^2 using binary trees, which was much faster on smaller strings, but was 4 times slower on 5000 length.
Then gave up and looked at Discussion :)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Common Child
You are viewing a single comment's thread. Return to all comments →
Indeed so.
Kept banging my head against the keyboard for a couple of days...
Even invented algorithm faster than N^2 using binary trees, which was much faster on smaller strings, but was 4 times slower on 5000 length.
Then gave up and looked at Discussion :)