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.
thank you :)
Thanks :)
When i created it i suggest to be 6kyu, but moderator (or voting people, i don't know exacly how it works) change it to 7.
Didn't you miss 0 in split part?
@lekowan
Test
pin.split(/123456789/).join('')
with diferent values for pin and see what it returns and ifpin.length
is 4, it isn't 6 and viceversa, so your code would return false in both cases.Talk about over complicating it. It is only a 7 kyu. use a simple regexp. It is a one liner
I agree. It would make sense to be that, but javascript numbers are wierd sometimes. MDN talks about that a little here https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript#Numbers.
This comment is hidden because it contains spoiler information about the solution
Can you please give a little more info? Why can't the kata be solved with 0.28000000000000025? I just tried the JS version out and everything looks good.
P.S. You aren't going to return an array. You will return a string. For example: