This file contains hidden or 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
| class Nodo: | |
| def __init__(self): | |
| self.dato=None | |
| self.izq=None | |
| self.der=None | |
| def insertar(self,valor): | |
| if self.dato is None: |
This file contains hidden or 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
| class Nodo: | |
| def __init__(self): | |
| self.dato=None | |
| self.izq=None | |
| self.der=None | |
| def insertar(self,valor): | |
| if self.dato is None: | |
| self.dato=valor | |
| self.izq=Nodo() | |
| self.der=Nodo() |
NewerOlder