Pergunta de entrevista da empresa Amazon

How to reverse a linkedList?

Resposta da entrevista

Sigiloso

19 de fev. de 2015

I believe a stack data structure would work well for this. Traverse the list and push each node onto the stack. Then pop each off making the list.