previous | index | next

A More Efficient Method of Reversing

List to be reversed    Reversed list so far
(1 2 3 4 5) ()
(2 3 4 5) (1)

previous | index | next