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.
i forgot about exeptions.. thanks
No, it will fail with an
ArrayIndexOutOfBoundsException
.First comment I've left on this website; nice job
"You will be given a list of strings. You must sort it alphabetically ...
You should not remove or add elements from/to the array."
3\\.50?
I'm wrong or this code change the original Array? 🤔
This comment is hidden because it contains spoiler information about the solution
https://docs.oracle.com/javase/8/docs/api/java/lang/String.html#join-java.lang.CharSequence-java.lang.CharSequence...-
Returns a new String composed of copies of the CharSequence elements joined together with a copy of the specified delimiter.
Of course, that is the very definition: "They usually are not code that you would want to put into production"
you know is WAY slower than just comparing elements and substraction right?
I mean sometimes "clever" is not the right answer
Codewars could have a button for bad solutions
Thank you. I've got it.
RTFM Kata Rule:
Do not modify the ONE_HUNDRED declaration
Just ONE_HUNDRED being uppercase should be final.
very smart
Loading more items...