PDF document

Reverse a Linked List - GeeksforGeeks

The idea is to reverse the linked list by changing the direction of links using three pointers: prev, curr, and next. At each step, point the current node to its previous node and then move all three pointers forward until the list is fully reversed.

Source: www.geeksforgeeks.org