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 sharing your thoughts. learning by building from scratch is a solid habit.
it's clear that your goal is to learn from first principles. others, optimize for speed or clarity (or showing library knowledge), so using imports is a valid choice.
Lovely! :)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It is just another way to achieve the same result.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/in
If
v in seenthenfalseand that means, filter thevfrom the array.This comment is hidden because it contains spoiler information about the solution
Does
fitnessesalways add up to 1.0?This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Sorry for the delay. I've added more tests, though, I believe there's a better way to test randomly.
Description updated. What should I do in case of duplicate?
I've added some random tests. I'm open to better ways to handle random tests. Also change the assertSimilar to deepEquals.
Nice catch! https://www.codewars.com/kata/reviews/5990bc7a10038ae59f000078/groups/5f428a9004f716000131e1a6
Loading more items...