PTC Interview Question

Invert a singly linked list in C

Interview Answer

Anonymous

Feb 25, 2022

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