We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c74445 commit e521d18Copy full SHA for e521d18
src/avl_tree.jl
@@ -32,7 +32,7 @@ AVLTree() = AVLTree{Any}()
32
33
Base.length(tree::AVLTree) = tree.count
34
35
-get_height(node::Union{AVLTreeNode, Nothing}) = (node == nothing) ? Int32(0) : node.height
+get_height(node::Union{AVLTreeNode, Nothing}) = (node == nothing) ? Int8(0) : node.height
36
37
# balance is the difference of height between leftChild and rightChild of a node.
38
function get_balance(node::Union{AVLTreeNode, Nothing})
0 commit comments