Pergunta de entrevista da empresa Hulu

how to reverse a linked list?

Resposta da entrevista

Sigiloso

21 de jan. de 2011

Traverse the list in reverse order (starting from the end). Create a new list and add the objects sequentially. Voila, the list is now reversed.