Final Israel interview question

Reverse a linkedlist in CPP

Interview Answer

Anonymous

2 Dec 2024

Iterate through the linked list and create another list which is the reversed one, for each node update the reversed list's head node. thus creating a reverse replica