Domanda di colloquio di Amazon

Reverse a linked list.

Risposta di colloquio

Anonimo

9 feb 2011

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