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.
perfect
nice inner product!
excellent point, I modified the tests to allow a
NULL
pointer when the size is0
According to standard malloc(0) may return NULL (it is implementation-defined).
But in test cases returned value is checked to be non-NULL.
Please, state this expected behaviour in description or change test-cases to allow result of malloc(0) be NULL.
p0
shouldn't change, it's the starting population.[](int a, int b) { return (a > b); }
should have beenstd::greater<int>{}
. Otherwise nice use of the stl.