Skip to content

Instantly share code, notes, and snippets.

@evanpurkhiser
Created May 2, 2012 22:44
Show Gist options
  • Select an option

  • Save evanpurkhiser/2581110 to your computer and use it in GitHub Desktop.

Select an option

Save evanpurkhiser/2581110 to your computer and use it in GitHub Desktop.
void LinkedList<T>:reversePrint(ListNode<T> *node = null, bool start = true) {
if (start == true)
node = head;
if (node == null)
return;
reversePrint(node->next, false);
cout << node->value << " ";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment