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.
No, it's not. It's
O(32*n)
.So? Still
O(1)
.My husband is very satsified with your solution :)
yeah it's a mess
This comment is hidden because it contains spoiler information about the solution
it also looks cooler
I felt the same :)
OMG ! Do you know DRY? ... You should read about it...
This comment is hidden because it contains spoiler information about the solution
😂 This must've taken real dedication!
It iterates 32 times over the same array, oh my god xD
I think the same :P lol!
You are right, in general. But theoretically, if we are in environment which is restricted by RAM, additional memory allocations sometimes are not desired. Secondly, perhaps authors supposed that caller code is responsible for immutability, by cloning passed arrays, for example. Lastly, cleverness also counts, and sometimes we're sacrificing best practicing for higher cleverness (less code in current case). 😉
This comment is hidden because it contains spoiler information about the solution
Beautiful solution <3
Loading more items...