Amazon Interview Question

Reverse a linked list.

Interview Answer

Anonymous

Feb 9, 2011

If its a Doubly Liked List, then i think easy way is to swap the element data from last node to head node.