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.
nice :)
I was able to get N=2000 here (C++), so you don't need to have any constrains ;) This kata is mostly about how much performance you can squeeze before reaching a timeout.
Great Kata. One of the best ones that I have ever solved (C++)
Please, fix for C++:
main.cpp:26:24: warning: comparison of integers of different signs: 'int' and 'std::__cxx11::basic_string<char, std::char_traits, std::allocator >::size_type' (aka 'unsigned long') [-Wsign-compare]
for(int i = 0; i < y.size(); i++){
~ ^ ~~~~~~~~
1 warning generated.
Couple of issues with this: