Print reverse of a Linked List without actually reversing

PHOTO EMBED

Sat Dec 24 2022 07:29:03 GMT+0000 (Coordinated Universal Time)

Saved by @Ranjan_kumar #c++

void printReverse(Node* head)
{
    // Base case
    if (head == NULL)
    return;
 
    // print the list after head node
    printReverse(head->next);
 
    // After everything else is printed, print head
    cout << head->data << " ";
}
content_copyCOPY

https://www.geeksforgeeks.org/print-reverse-of-a-linked-list-without-actually-reversing/