Question d’entretien chez Fujitsu

How to reverse a singly linked list.

Réponse à la question d'entretien

Utilisateur anonyme

9 nov. 2017

Divide the list in two parts - first node and rest of the linked list. Call reverse for the rest of the linked list. Link rest to first. Fix head pointer.

1