NEED HELP

.
Last edited on
.
Last edited on
Can he remove only the first 3 cards or can he also remove only 1 or 2?

To remove the first 3 cards and add them to the back you can use std::rotate.
The you could use std::is+sorted to check if the cards are sorted in ascending order.
Topic archived. No new replies allowed.