R/update_size.R

update_size <- function(node) {
    if (!is.null(node)) node$n <- 1L + size(node$left) + size(node$right)
}
tarakc02/rbst documentation built on May 31, 2019, 3:55 a.m.