Reverse the order of a finite list. Reversal is an involution and satisfies for list concatenation. In an array segment of length , exchanging symmetric offsets and for realizes reversal in constant auxiliary space.
New to topics? Read the docs here!