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.
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 seen
thenfalse
and that means, filter thev
from the array.This comment is hidden because it contains spoiler information about the solution
Does
fitnesses
always 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
It does! Fixed here -> https://www.codewars.com/kata/reviews/52b7ed099cdc285c300001d0/groups/5da08c75ae338600016c5a92
This comment is hidden because it contains spoiler information about the solution
Loading more items...