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.
More RegExp? LOL. I only use 1 RegExp, and only one replace. This solution uses 8 RegExp, a while for each regexp with a .test and .replace. What a waste!
Again LOL and LOL.
Yours has MORE RegExp and is LESS readable, what are you talking about. And if the scoring was going to be changed, you'd have to change your patterns in two places instead of one.
check my solution. What think about that.
very complicate your solution
Very similar in pilosophy to my first Solution.
I have two solutions, second is onliner recursive, first is iteration
why
n/5 < 1
instead ofn<5
Double n/5, why not: (n=Math.floor(n/5)) + zeros(n)
Check my answer
bad!! very regex rules. Check my solution
why change prototype? this is clever
haha wth is this?
not working!
test with multiple spaces in a row
This solution is bad.
Test with two spaces in a row