Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created May 26, 2022 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/e32ba7a5068e2cb761209a85c25a0cbd to your computer and use it in GitHub Desktop.
Save parzibyte/e32ba7a5068e2cb761209a85c25a0cbd to your computer and use it in GitHub Desktop.
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