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.
Just wow
Why are all of these solutions O(n^2)?
the mod operator inside [] is so nicely used
is it O(N^2) time complexity? O(N) for removing and adding elements to Linked List, bur removing inside forloop... i think O(N * N). Or not?
that's the ternary operator EDIT: note that the second option is a recursive call (!)
Can someone explain what is happening after the return statement? with the question mark?
This solution is mind blowing for me. Smart!