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.
Refer to the top-voted solutions.
You didn't specify what your function should return. Although it seems you've solved the problem.
return something.
This comment is hidden because it contains spoiler information about the solution
I have sorted this now. Thanks for your help :)
By chance, the only valid inputs (that break with the bug), are stings with length of two. So, I basically reassigned the pound sign as such:
(n.length===2) ? m=n.slice(1)+"P" : m=n;
haha.. good one dude 6988ms.
hint please!!!! I only fail that test!!
Pound Sign has an A. And.. test case don't make sense, you already mentioned maximum is 5 pounds, so why is there a 10 pounds.
And can you include the 2 10 cents as test case upfront. So that I will be the last victim.
Oh ya good work, I enjoyed the challenge.
This comment is hidden because it contains spoiler information about the solution
ok I just solved it.. by accident.
Can any kind soul tell me about matching hypen only?
This comment is hidden because it contains spoiler information about the solution
Try to use a simpler regex, and testing for the string to be true first.. ;)
This comment is hidden because it contains spoiler information about the solution
Loading more items...