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.
I recommend adding more unit testing.
Re-raising the issue below.
Random tests occasionally produce duplicates, and previous approach pass the test
Passed: 1 Failed: 5 Exit Code: 1
This kata has performance requirements but the input range is not specified.
(Also,
performance
tag should be needed)This is a C++ kata, not C, so the kata design should follow C++ standards, e.g
std::vector<int>
should be used in place ofint[], int
as array content and length.