-
-
Save parzibyte/e32ba7a5068e2cb761209a85c25a0cbd 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 obtener_cabeza(nodo_inicial): | |
return nodo_inicial | |
def obtener_cola(nodo_inicial): | |
temporal = nodo_inicial | |
while temporal.siguiente: | |
temporal = temporal.siguiente | |
return temporal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment