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.
Why do some tests need the output to be of length 4 in the JS-Kata?
This should be stated in the kata description or better the tests should be adapted
Not sure what the assertion logic is doing when I submit my solution for Kotlin. My last print statement before i return the DoubleArray is:
Result: [1.2219787059623188, 7.958071682121853, 10.172098571448887, 19.35214895953306, 37.4823192131038, 67.00656674408575, 123.8410349167226, 228.32992087391216, 419.17752253472054, 771.3484783253552, 1418.855921733988, 2609.381922594064, 4799.5863226534075, 8827.82416698146, 16236.792412228931]
then I get an error:
It should work with random inputs too: arrays first differed at element [0]; expected:<1.2219787059623188> but was:<2609.381922594064>
But as seen from the println, the first element is
1.2219787059623188
and only the twelfth element is2609.381922594064