From 0c60037e569ee7a717ceabd54bca3db498769f0f Mon Sep 17 00:00:00 2001 From: Akshit <111843857+LifeGoesOnionOnionOnion@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:53:54 +0530 Subject: [PATCH] Update avl_tree.md (#1524) Syntax for avl trees updated --- docs/chapter_tree/avl_tree.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/chapter_tree/avl_tree.md b/docs/chapter_tree/avl_tree.md index 0b37a726f..3d9018677 100644 --- a/docs/chapter_tree/avl_tree.md +++ b/docs/chapter_tree/avl_tree.md @@ -180,7 +180,7 @@ AVL 树既是二叉搜索树,也是平衡二叉树,同时满足这两类二 ```c title="" /* AVL 树节点结构体 */ - TreeNode struct TreeNode { + typedef struct TreeNode { int val; int height; struct TreeNode *left;