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.
have a look at c++ algorithms. http://en.cppreference.com/w/cpp/algorithm
sorry, was thinking wrong. It's correct. Thx
thats a lot of counting with a very long array, exponential performance loss.
prefer find_if over your loop if you are looking for sth. to return if found.
many wrong answers will pass the tests
wrong 50% of the time. and with sort, you always have to read the entire vector (unefficient)
IMO this misses the point of doing Katas. It's about coding and thinking about good algorithm and maintainability, not about using the final mathematic formular and going "the easy way"