Reverse Linked List iterative and recursive in C++

Example: Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL   This problem can be solved in 2 ways. 1. Iterative 2. Recursive. … Continue reading Reverse Linked List iterative and recursive in C++