-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nodos "Buenos" en un árbol binario #31
Labels
Comments
dpalmasan
pushed a commit
that referenced
this issue
Oct 19, 2021
dpalmasan
pushed a commit
that referenced
this issue
Oct 20, 2021
dpalmasan
pushed a commit
that referenced
this issue
Oct 22, 2021
dpalmasan
pushed a commit
that referenced
this issue
Oct 31, 2021
dpalmasan
added a commit
that referenced
this issue
Oct 31, 2021
Agregar explicación Nodos buenos (#31)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dada la raíz de un árbol binario, se dice que un nodo
X
en el árbol es "bueno" si en el camino desde la raíz hastaX
no hay nodos que tengan un valor mayor que el que tengaX
.Se pide crear una función que dada la raíz de un árbol binario, retorne la cantidad de nodos "buenos".
Ejemplo 1
Ejemplo 2
Ejemplo 3
Árbol con 1 solo nodo:
The text was updated successfully, but these errors were encountered: