You are viewing a single comment's thread. Return to all comments →
You could do it recursively which is a lot neater. The code below is in Java.
void ReversePrint(Node head) {
if(head == null) ; else{ ReversePrint(head.next); System.out.println(head.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 →
You could do it recursively which is a lot neater. The code below is in Java.
void ReversePrint(Node head) {
}