We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Print in Reverse
Print in Reverse
Sort by
recency
|
1001 Discussions
|
Please Login in order to post a comment
For Python3 Platform
Here is Print in Reverse solution in python, java, c++ and c programming - https://programmingoneonone.com/hackerrank-print-in-reverse-problem-solution.html
Mi solución en Python 3:
By recursion(Java)
if(llist==null) return; if(llist.next==null){ System.out.println(llist.data); return; } else{ reversePrint(llist.next); System.out.println(llist.data); }
def reversePrint(llist): # Write your code here curr = llist if curr is None: return reversePrint(curr.next) print(curr.data)