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.
https://docs.codewars.com/training/troubleshooting#print-input
My code in VS CODE works perfectly with basic tests, but in codewars, with random tests, that have a long expected result, I have a problem.
Is there any way to see test arguments?
Because
['1','2','3']
is not an array of numbers.It is not clear to me why the test with integers cannot pass. The function([1,2,3]) gives the expected result ['1','2','3'] but the test still does not pass
Pay attention, my friend, on last element of test2 array. There is diffrence. In instructions is "5", but in Tests is "3", becouse length of arrays is diffrent. In instructions parameter "n" presents maximum INDEX of fib. Array, and on Tests "n" presents maximum length of array.
I've tested my code in console, and it works as expected, but when it's pasted in codewars, error pops up. That's how error is spoted.
In the description there is an example 9 -> 44
In the js tests there is a test 9 -> 44
How is that different? It's exactly the same. Maybe your code is off by one.
In JS version, in Test_2, expected result is 44 but it should be 10.
Problem is difference between instructions and tests
Instruction → INDEX in the Fibonacci sequence → Exemple 1, n=5, [0,1,1,2,3,5]
Tests → Arrray.length → Test 1, n=5, [0,1,1,2,3]
Maybe it's better to set tips for 7 on 10 (in tests it is 9).
Read the description again.
JavaScript, wrong samples 99 and 983212
Adjusted some languages to use
[32; 126]
character range. Reset the trainer, and it should work fine.I have problem with random receive. Every time random text include one unprintable character witch is not in range of ASCI code 32 - 127. As expected result I get some wierd characters. "to equal" result, same character is unprintable, even in VS code, when I copy/paste, it is presented as empty space.
Maybe you could enter this string as test:
' !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~'
Not quite sure what you are asking, but you can't call .length on a null. Issue in your code.
Should be fixed. Thanks
Loading more items...