Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def encolar( self, dato ):
nuevoNodo = Nodo( dato )
if not self.cabeza:
nuevoNodo.asignarSig( None )
self.cabeza = nuevoNodo
else:
self.cola.asignarSig( nuevoNodo )
self.cola = nuevoNodo
self.tamanio += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment