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.
This comment is hidden because it contains spoiler information about the solution
I'm sure this is clever, but wow, it's awfully dense. If you were writing code for production, it would need a lot of comments!
But I think you were not writing for production.
Regex to the rescue. Most times brings you clean, simple and readable solutions like this to table. Well done!
This comment is hidden because it contains spoiler information about the solution
Im gonna take this
Done.
This solution fails the tests. It needs to be removed
This comment is hidden because it contains spoiler information about the solution
"If the final result is longer than 140 chars it must return false."
I'm guessing the tests cases were different at the time but today this code would fail.
I agree
if the input is a white space with length less than 140 your code will crash
point is the length test shouldn't be on the passed string, but on the final hash-tagged string.
It should not be the best solution, sorry.
What does this do? Please some comment or description.
Loading more items...