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.
done
191 people did this kata in C++ without any problems...
There are many ways to use the std-qualifier. So its up to you.
description updated, please check if it's clearer.
thanks!
All lists are expected to start with element "1", so if the list is (2,3,4) then it is invalid.
They mean that the first element of the input string, when converted into an array, is not 1. All valid input strings have to have a 1 (so "4 1 3" and "3 1 2 5" are OK, but not "2 4 5").
The sequence should start with
1
. You should only return0
if the sequence is not broken! This means the sequence would look like"1 2 3 4"
.