NEED HELP

Oct 19, 2018 at 5:18pm
.
Last edited on Oct 19, 2018 at 6:54pm
Oct 19, 2018 at 5:19pm
.
Last edited on Oct 19, 2018 at 6:54pm
Oct 19, 2018 at 5:32pm
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.