Last active
March 21, 2016 03:05
-
-
Save neonbadger/eba93fd2f12b36d95297 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Hackerrank solution. | |
Print linked list in reverse. | |
""" | |
def ReversePrint(head): | |
print_list = [] | |
curr = head | |
while curr is not None: | |
print_list.append(curr.data) | |
curr = curr.next | |
for i in reversed(print_list): | |
print i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment