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
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.
I can prepare a fork with a fix if you want, but I need some time.
using namespace std;
is not needed, and in case of this particular C++ translation it actually breaks things. There are some includes missing here and there in the translation, and the problem is thatusing namespace std;
seems to be necessary in solution (but it's not) because it is missing in another place (specifically, in tests).This is a valid issue, and code of snippets should be corrected: missing includes should be added, and usings should be added where necessary, and removed where unnecessary.
The "Setup" solution has "using namespace std;". Maybe it is not the best way but it is there and is needed.
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.
Not a kata suggestion!
This comment is hidden because it contains spoiler information about the solution
Loading more items...