Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I just realized I could've reduced the time complexity just by using a simple binary search :(
did this from scratch, without using any additional sorting function. time complexity is O(m+n) which is basically max(m,n) meaning O(n) - linear time, while using the sorting function would take O(nlogn) time.
gonna say: implementing this from scratch without using any additional language-specific feature is insanely hard for 8kyu.
I could've shortened the amount of code by creating more functions for specific tasks, but I got really bored writing this, so...
this solution is underrated.
well done.
why would you complicate it like that :D
good job though.