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.
Don't undertand your logic. How iterator type depends on position of smallest in array?
This comment is hidden because it contains spoiler information about the solution
Look at begining of your function. Empty array is
{}
{{}}
- array containing 1 empty array.;)
I've already solved it anyway. But sure forthcoming users will appreciate your work.
C++ - does not work when removed
using namespace std
Not so easy.
long long
type have a limited size and hencen
won't be too big. Also in "brute force" method you can make cheap iteration, especially by avoidinginsert
anderase
string functions.Numeration from 1 is bad idea, because formulas for faster calculation requires numeration from 0
This comment is hidden because it contains spoiler information about the solution
Why not? Me, and as I see, some people in comments stumble at this point.
So I guess it would be good to warn about this moment. And - if possibe - to upgrade test ceses.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
C++: please don't put function declaration in test cases - user can't change types of arguments.
Another example of good math trolling :)))
C++ : is it so hard was give to helper function another name?
I've passed all tests except random with results:
Expected: false
Actual : true
That's not too much clear. In most katas we can make debug output of incoming data, but here incoming data is the expression itsels.
Then question: how can I see the case I failed on?
Loading more items...