You are viewing a single comment's thread. Return to all comments →
Here's the recursive soln in** C++** :
void reversePrint(SinglyLinkedListNode* llist) { if(llist==NULL){ return ;} reversePrint(llist->next) ; //recursive call cout<< llist->data << endl ; //print }
Seems like cookies are disabled on this browser, please enable them to open this website
Print in Reverse
You are viewing a single comment's thread. Return to all comments →
Here's the recursive soln in** C++** :