Bug
parent
b032366751
commit
9dcc1b9399
|
@ -377,7 +377,7 @@ cat: graphics/23b/cat.png
|
|||
{
|
||||
root match {
|
||||
case EmptyTree =>
|
||||
-1
|
||||
0
|
||||
|
||||
case TreeNode(v, left, right) =>
|
||||
1 + Math.max( height(left), height(right) )
|
||||
|
|
Loading…
Reference in New Issue