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.
& looks faster than %
Yes, you're right - complexity will stay at O(N). I used wrong words trying to explain that passing the list twice is not necessary.
It is, but it won't help in this Kata since the input is limited to 12.
I'd suggest to use lambda. Why sorting a list twice?
You're passing the list twice - worse time complexity :-)
Passing the list only once + reducing costs for additional list allocation...