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.
Good problem. The editorial is not worth unlocking though: it just links to a cryptic paper which can only be implemented in C++. The proposed algorithm is too slow for other languages. There are faster algorithms, but the editorial does not mention them.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Hacker Country
You are viewing a single comment's thread. Return to all comments →
Good problem. The editorial is not worth unlocking though: it just links to a cryptic paper which can only be implemented in C++. The proposed algorithm is too slow for other languages. There are faster algorithms, but the editorial does not mention them.