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.
Sample tests passed. After btn "Attempt": SyntaxError: Invalid regular expression: /^$.|?*+()[]{}/: Nothing to repeat
(JS) It is not my expression. What is wrong?
mmh, right. I was too much focused on the example.
edit: oh, actually, you're missing the "alternately" at the beginning of the sentence. So it seems actually correct.
The first number is multiplied by 1, the second number is multiplied by 3, the third by 1, etc. There are 1 and 3, not "or". Maybe there’s something I’m not considering.
It looks good to me. Köszi! :)
Hi,
I consider, that the multiplication condition is incorrectly stated in point 4 ('1 or 3' Why?). check_digit = 9*1 + 7*3 + 8*1 + 1*3 + 8*1 + 5*3 + 3*1 + 2*3 + 6*1 + 1*3 + 5*1 + 8*3
I do not understand. In the first test 4 parameters that are defined correctly are not one, but 4 parameters. In other tests the values are close to what is required. I am in a deadlock.
When you return your result. Maybe the problem is not only rounding or truncating?
Test Passed: Value == '[15, 135, 49, 18]'
Expected: '[12, 133, 18, 44]', instead got: '[12, 148, 58, 36]'
Expected: '[20, 129, 41, 57]', instead got: '[21, 123, 58, 12]'
The first test passed. I can assume, that problem in rounding. Please, specify at which step the rounding?
No, count again, 'a12' has only 3 characters, not more than 3.
Then 'a12' must be "VALID".
Not a kata issue, the condition for this test is clearly detailed in the description:
More than 3 characters but less than 20
.Why? 'a12' , 'INVALID' (JS)
Loading more items...