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.
To explain, what's cool about this is that .asSequence() causes the onEach() and filter{} to be applied lazily for every element at the same time, so it goes:
onEach
filter
onEach
filter
etc.
The description would be more clear if it included '-' in the list of special characters to be treated as white spaces since hyphenated words are words. Or better yet, (and to add to difficulty I guess) hyphens should be left alone if they are between letters.
Don't give free hints and let users solve the katas by themselves.
This comment is hidden because it contains spoiler information about the solution
Is there any way to log the time it took the function to finish? It's not very helpful if the only information we get is that the whole thing timed out.
Description is confusing. "Size" of squares obviously means area so that's what I did at first (hence squares and roots in my solution) but we are required to return a list of SIDES of squares, not sizes.
You can't. But you can submit as many solutions as you want.
Anyone knows how to delete extra solutions?