Question d’entretien chez Microsoft

Reverse a singly linked list.

Réponse à la question d'entretien

Utilisateur anonyme

24 avr. 2017

traverse the list from root to last item and save in a stack, then pop the stack until empty, insert each element in a new linked list, last item will be root.