We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
void ReversePrint(Node *head)
{
// This is a "method-only" submission.
// You only need to complete this method.
if(head){
ReversePrint(head->next);
printf("%d\n",head->data);
}
}
Print in Reverse
You are viewing a single comment's thread. Return to all comments →
void ReversePrint(Node *head) { // This is a "method-only" submission. // You only need to complete this method. if(head){ ReversePrint(head->next); printf("%d\n",head->data); } }