PTC interview question

Invert a singly linked list in C

Interview Answer

Anonymous

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.