Question d’entretien chez Amazon

How to reverse a linkedList?

Réponse à la question d'entretien

Utilisateur anonyme

19 févr. 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.