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.
Great!
This solution looks like my one! However, my solution has some differences.
Something I don't quite grasp is, where in memory do the iterators of
minmax
point to?Aern't these iterators invalid after
std::minmax_element
returns?I don't understand where the
int
s pointed to by these iterators are stored in memory.Are the iterators not actual pointers, but instead simple integers wrapped in a std-defined class having an iterator interface?
This comment is hidden because it contains spoiler information about the solution
To motivate the interpreter. Sometimes it gets a bit tired or exhausted, and encouraging words help keep its spirits up.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Hah, mine is roughly the same.
The firt code that i understand XDDD