Page 1 of 1

QUESTION 5 Escriba las siguientes funciones para un BST que contiene valores enteros 1. (10 Puntos) double Average() //C

Posted: Fri May 20, 2022 1:45 pm
by answerhappygod
Question 5 Escriba Las Siguientes Funciones Para Un Bst Que Contiene Valores Enteros 1 10 Puntos Double Average C 1
Question 5 Escriba Las Siguientes Funciones Para Un Bst Que Contiene Valores Enteros 1 10 Puntos Double Average C 1 (91.51 KiB) Viewed 27 times
Write the following functions for a BST containing integer
values
(10 Points) double Average() //Calculates the average of the
values ​​of a BST. If the BST is empty, the method returns 0.
(hint: also implement the function “int averageRecursive(BSTNode
node, int &count)” // the count variable is used to count the
number of nodes visited.)
2.(10 Points) int minimum()
//returns the minimum value in a BST. If the BST is empty, it
returns 0.
QUESTION 5 Escriba las siguientes funciones para un BST que contiene valores enteros 1. (10 Puntos) double Average() //Calcula el promedio de los valores de un BST. Si el BST está vacío, el método devuelve 0. (hint: implemente también la función "int averageRecursive(BSTNode node, int &count)"//la variable count sirve para contar el número de nodos visitados.) 2(10 Puntos) int minimum() //devuelve el mínimo valor en un BST. Si el BST esta vacío, devuelve 0. For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac).