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.
Is there a reason why std::string_view is used instead of std::string? It looks like converting from string to int
stoi
is not supported in string_view.I am sure whether this will work if there are repeating elements twice or more. Picking up the first two after sorting will get the same value not not the second minimum.