You are viewing a single comment's thread. Return to all comments →
Here is a recursive solution in JavaScript:
function reversePrint(llist) { if (!llist) { return; } reversePrint(llist.next) console.log(llist.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 →
Here is a recursive solution in JavaScript: