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.
Is it a good practice to have 0 or negative delta value in test cases while comparing floats or doubles?
hopefully fixed there
fixed there
cheater lol
This comment is hidden because it contains spoiler information about the solution
Number of random tests is increased to 1001 to ensure all cases get tested. And your other issue also is fixed https://www.codewars.com/kumite/6830931d9b22cae2fe115973?sel=6830931d9b22cae2fe115973
It's because of integer overflow.
I love this
Fork that updates the initial code with a comment showing the definition of
RGB
.done
Added an explanation to https://www.codewars.com/kata/reviews/53d40c81f4eb76d6d7000b6f/groups/5971d1713f2d384bd3001389
Added an explanation to https://www.codewars.com/kata/reviews/53d40c81f4eb76d6d7000b6f/groups/5971d1713f2d384bd3001389
[...] is called the spread syntax. When we write [...str], it spreads the string into an array of its individual characters. This is necessary because reverse() only works on arrays.
Without the spread (just [str]), you'd get an array with the entire string as a single element — not what we want in this case.
Very fun to solve! Enjoyed it a lot!
This is really clever & simple. I don't think I would've ever thought to subtract from hd.
Loading more items...