Pergunta de entrevista da empresa Amazon

Reverse a linked list.

Resposta da entrevista

Sigiloso

9 de fev. de 2011

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