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.
"Very inefficient solution" ?!?
OP's solution finishes in about 1/6th of the time it takes yours. 6 executions for every one of yours.
No, it's only O(n^2), and it's good for this task.
This last comment has become very sad. Hope its author is fine.
понимаю, русский
Very inefficient solution O(n^3)
oh lol)
this Kata made me learn about regular expression. Try) it's fun