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.
Niceeee
amazing
This is really great. Genuinely learned from this. I was having a ridiculous amount of trouble using forEach()!
Thanks for helping indirectly teach me how to use these methods like this!
Well done
This is beautiful
This comment is hidden because it contains spoiler information about the solution
Nice and simple kata for begginers.
I edited the fork to make it backwards compatible, preserving old solutions by converting the user's answer to
BigInt
and not testing numbers that would go beyondNumber.MAX_SAFE_INTEGER
.Alternatively, I can drop the bigints (although i think it's the output type that makes the most sense, since fibonacci numbers explode quickly), and merely fix the description and the random tests' range. Which would you prefer ?
I am not sure how to handle drastic changes like these. Do you think this is a necessary change to sustain the integrity of the kata?
TypeScript fork
bigint
s instead ofNumber
s, fixing this issue and this suggestionwarning: this will invalidate all current solutions
Thank you! :)
your test cases only call the function once and do not seem to test if the function behaves properly with multiple instances, while also not having the same test cases as the original tests (skipping ahead to random indices and checking that random segments behave like fibonacci sequences). can you check if the test cases will test properly when multiple instances of the same stream is invoked?
Prolog translation
OCaml translation
Very easy to read actually
Loading more items...