Domanda di colloquio di Fujitsu

How to reverse a singly linked list.

Risposta di colloquio

Anonimo

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