Created
May 8, 2020 07:16
-
-
Save parzibyte/dc86c8b4228f15acf6171ca90e052bba 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
ArbolCadenas arbolCadenas = new ArbolCadenas(); | |
arbolCadenas.insertar("Luis"); | |
arbolCadenas.insertar("Chris"); | |
arbolCadenas.insertar("Zelda"); | |
arbolCadenas.insertar("Cuphead"); | |
arbolCadenas.insertar("Leon"); | |
System.out.println("Recorriendo inorden:"); | |
arbolCadenas.inorden(); | |
System.out.println("Recorriendo postorden:"); | |
arbolCadenas.postorden(); | |
System.out.println("Recorriendo preorden:"); | |
arbolCadenas.preorden(); | |
System.out.println(arbolCadenas.existe("Luis")); // true | |
System.out.println(arbolCadenas.existe("Claire")); // false | |
System.out.println(arbolCadenas.existe("Zelda")); // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment