Print reverse of a Linked List without extra space and modifications - GeeksforGeeks
Given a Linked List, display the linked list in reverse without using recursion, stack or modifications to given list.
Examples:
Input : 1->2->3->4->5->NULL Output :5->4->3->2->1->NULL Input :10->5->15->20->24->NULL Output :24->20->15->5->10->NULL
Read full article from Print reverse of a Linked List without extra space and modifications - GeeksforGeeks
No comments:
Post a Comment