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 for your answer.
So I guess this is something that should be fixed by Kata authors.
Every time I submit my solution or even when I submit default/empty solution the test throws the error:
Even the following code throws the error:
Maybe the issue is that Babel transpiles the code with the string
"use strict"
that is being identified as "prohibited" string by the kata?Could you please check if this is the case?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Hi @mattlub,
I can't pass the tests because of results that I get are seems to be better in all cases than expected test ones.
Could you please evaluate if my algorithm (written on JavaScript) is wrong or maybe there are kata tests or default algorithm that is not optimal?
Thank you in advance!
Basic tests
✔ Test Passed: Value == 0
✔ Test Passed: Value == 5
✔ Test Passed: Value == 2
✔ Test Passed: Value == 15
✔ Test Passed: Value == 5
✔ Test Passed: Value == 9
Short random tests
✔ Test Passed: Value == 420
✘ Expected: 106, instead got: 96
✘ Expected: 189, instead got: 182
✘ Expected: 210, instead got: 194
✘ Expected: 219, instead got: 210
✘ Expected: 118, instead got: 106
✘ Expected: 136, instead got: 120
✘ Expected: 78, instead got: 67
✔ Test Passed: Value == 501
✘ Expected: 172, instead got: 163
Long random tests
✘ Expected: 93, instead got: 84
✘ Expected: 377, instead got: 369
✔ Test Passed: Value == 1424
✘ Expected: 73, instead got: 67
✘ Expected: 258, instead got: 256
✘ Expected: 86, instead got: 83
✘ Expected: 82, instead got: 76
✘ Expected: 70, instead got: 63
✘ Expected: 152, instead got: 144
✘ Expected: 76, instead got: 73
Big number random tests
✔ Test Passed: Value == 1206
✔ Test Passed: Value == 2010
✔ Test Passed: Value == 4623
✔ Test Passed: Value == 804
✔ Test Passed: Value == 1005
✔ Test Passed: Value == 603
✔ Test Passed: Value == 1407
✔ Test Passed: Value == 2412
✔ Test Passed: Value == 1206
✔ Test Passed: Value == 3015