Reverse Double Linked List in C#
This is a question that often comes up in an interview. The solution is simple, but under pressure it’s easy to get confused. To begin with, initialise three node references: Remember to point the tail to the head before we begin: Now, iterate over the nodes using current, until there are no more: Within the […]