You are viewing a single comment's thread. Return to all comments →
Java Solution Using Tail Recursion
public static void reversePrint(SinglyLinkedListNode llist) { SinglyLinkedListNode current = llist; if(current != null){ reversePrint(current.next); System.out.println(current.data); } }
}
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 →
Java Solution Using Tail Recursion
}