Created
September 23, 2016 02:02
-
-
Save andresAlvarado/0c5ef5cc4a2f0fc7f4da7d57384659e1 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
def reverse2( self, current, previous ): | |
if current: | |
self.reverse2( previous = current | |
, current = current.getNext() | |
) | |
else: | |
return | |
print str(current.getData())+str('-->'), | |
current.setNext( previous ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment