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.
Daaamn.
good...
read the doc bruh
Nice !!
nice one :D
Twinning haha.
I wanted to brush up my skills for accessing an array.
Great job!
same :)
It is the best solution because it has constant time complexity. Any cycle method will lose against it.
that wouldn't work if the list has more than 3 elements
Did you post your comment on the wrong solution by accident? This solution is fine, one of the others has the problem you described.
One must be carefull with this method, because when you pass "int[] array", you pass a reference to the array. So, after the completion of the method the source array is also inverted.