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.
https://www.codewars.com/kata/reviews/5db0c65918d8df0001818183/groups/5dc8b4ab2d55c30001fe5a96
This solution sometimes fails at the "tiny" random tests. A corresponding fixed test should be added.
Fixed
Fixed
The actual tests doesn't seed the RNG with current time so the test cases are actually deterministic.
using namespace std;
is still required in sample tests.Thanks!
Thanks for the feedback, this is my first Kata and I must admit that I don't quite know how this testing stuff really works ^^
Inputs are vulnerable to user functions
Should calculate expected result before sending to user functions
Dont relay on includes by user code
This should be also put in the test part