You are viewing a single comment's thread. Return to all comments →
It's funny, because applying sorting makes solution already worse than O(nlogn) :D It was not that good idea after all
Okay, but performance wasn't my goal to resolve this challange.
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Happy Ladybugs
You are viewing a single comment's thread. Return to all comments →
It's funny, because applying sorting makes solution already worse than O(nlogn) :D It was not that good idea after all
Okay, but performance wasn't my goal to resolve this challange.