c++ - Reverse stack in increasing order alternately -
what elegant way (less code?) of reversing stack in increasing order in alternating manner? (non recursively)
ex.
1 2 3 4 5 6 7 8 9 10 1 [3 2] 4 5 6 [10 9 8 7]
i use std::reverse. work you?
Comments
Post a Comment