You are viewing a single comment's thread. Return to all comments →
Python
def reversePrint(head): currnode=head a=[] while currnode!=None: a.append(currnode.data) currnode=currnode.next for i in a[::-1]: print (i)
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 →
Python