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.
Haskell translation
Instead of passing three lists of the same length, why not pass a list of dictionaries with the associated keys instead? Since the three lists are supposed to represent different attributes of the same entry, the latter would be a more natural data type and (assuming it is used in production code) requires less checking for invalid input.
done
The function name should be removed too
resolved
The
count_duplicates(name,age,height)
should be removed to prevent language-specific blocks issuesapproved
Thank you!
nice kata!
All should be resolved now!
Thanks for the feedback, I appreciate the suggestion too. I'll be getting these issues resolved tonight and use that suggestion in future.
Ok, good to know that, thanks ;)
because it's fucking slow compared to the second version ;) (python specific, ofc) And well, the second conveys the idea way much better/quicker than the first.
@esfhamilton: don't use that for the random tests, tho, ofc... ;o
Just by curiosity, why do you say the first is antipattern and why is it so bad it should be avoided?
This comment is hidden because it contains spoiler information about the solution
Loading more items...