Skip to content

Instantly share code, notes, and snippets.

@andresAlvarado
Created September 23, 2016 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andresAlvarado/0c5ef5cc4a2f0fc7f4da7d57384659e1 to your computer and use it in GitHub Desktop.
Save andresAlvarado/0c5ef5cc4a2f0fc7f4da7d57384659e1 to your computer and use it in GitHub Desktop.
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