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
This comment is hidden because it contains spoiler information about the solution
Feels like a little bit of cheating ;)
Impressive solution!
This comment is hidden because it contains spoiler information about the solution
Well it's just a suggestion, and for my perdonal experience, regex generally handle better boundary cases and they're modified painlessly compared to modifing a coded non-regex solution.
Actually I liked this Kata, because it focuses on a simple problem. I really like the idee of simplicity (https://martinfowler.com/bliki/PrinciplesOfXP.html) and I'm also practicing XP on my job.
Why did you recommond people to use regular expressions? Actually I think this overcomplicates the solution and a non-regex-solution maybe easier to read and faster during the runtime.
Is there any sepcial reason to solve this one in regex? I definitly wouldn't.
Good solution! You may think about readability..
I like the solution. Think about moving the magic number out of the implementation.
This comment is hidden because it contains spoiler information about the solution
Actually it's no requirement that the provided data should not be modified.