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.
That's what I thought and that's why I didn't actively test it. Sorry for taking your time :)
Linear time - very demanding tests, VERY demanding tests, considering you want to prohibit sorting.
Constant space - I think it's... impossible? In languages without memory management at least.
Is there any way to test it ? (If no, i'll just unpublish the kata since it's mostly for people that I know)
This is not tested.
Either test it, or take it out of the description.
Ok.
Nope, it is your (the kata author's) job to reject any solutions you dont want them to pass by your test code.
Otherwise, any solutions that pass are perfect.
Sadly not
O(n)
in time because of the sort.Sadly not
O(n)
in time because of the sort.