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.
How does this handle "Pak should not be the first or last word. Strings of just spaces should return an empty string." ?
That would be the case if he had the array starting from "I love you" as the first element.
random test: "Text '2438/11/5' could not be parsed at index 8".
Obviously it's not correct "yyyy/MM/dd" date format.
The current solution upvote system slightly rewards shorter code over efficient code on many problems. I think this might change in the future if they decide to show the average runtime of each solution.
+5Kyu kata check for efficiency more often as a requirement to pass the tests. On lower level kata, you can mostly expect short solutions that are far from being considered best practices.
Other reason for writing shorter code is simply having a little bit of fun. I've done it myself.
So, why are people here focusing on less code lines instead of perfect run times? Sorting is not a reasonable solution if efficiency is required.
Shouldn't be that array final then ?
Hi!
Could you explain, what do you mean?
Are there any examples?
Ok. You are right.
No, because he changed the order.
This comment is hidden because it contains spoiler information about the solution