How to reverse a Linked list ?
REVERSE A LINKED LIST IN A DATA STRUCTURE A linked list is a linear data struture where elements (nodes) are connected using pointer.Each node typically contain: Data(the value stored) Next(a pointer to the next node) Reversing a linked list means changing the direction of links. For Example: Original List:10->20->30->40->NULL Reversed List:40->30->20->10->NULL Reversing a linked … Read more