Domanda di colloquio di PTC

Invert a singly linked list in C

Risposta di colloquio

Anonimo

25 feb 2022

Iterate over the list and for each node swap the next ptr to the prev ptr, and continue to the next node.