pull/2/head
Oliver Kennedy 2022-10-26 13:09:35 -04:00
parent b032366751
commit 9dcc1b9399
Signed by: okennedy
GPG Key ID: 3E5F9B3ABD3FDB60
1 changed files with 1 additions and 1 deletions

View File

@ -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) )