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
|
983 Discussions
|
Please Login in order to post a comment
Kotlin:
Here is my c++ solution, you can watch the vidéo explanation here : https://youtu.be/WO7Uz7sQML4
This is the perfect way to understand recursive
public static void reversePrint(SinglyLinkedListNode llist) { if(llist != null){ reversePrint(llist.next); System.out.println(llist.data); } }
Third issue with C# template here... hackerrank, what's up with that? You need good C# coders to fix up your templates????
Solution:
Same as prior problem
remove
class Result
, but keep its guts. change function to be non-public -- removepublic
keyword.solution with javascript