From b39b84acbadc79a7c89cf3b11d3e80e253864400 Mon Sep 17 00:00:00 2001 From: Yudong Jin Date: Fri, 3 Feb 2023 18:58:01 +0800 Subject: [PATCH] Update avl_tree --- codes/csharp/chapter_tree/avl_tree.cs | 2 +- codes/go/chapter_tree/avl_tree.go | 2 +- codes/java/chapter_tree/avl_tree.java | 2 +- codes/swift/chapter_tree/avl_tree.swift | 2 +- codes/zig/chapter_tree/avl_tree.zig | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/codes/csharp/chapter_tree/avl_tree.cs b/codes/csharp/chapter_tree/avl_tree.cs index 50a4ba162..778c9d40b 100644 --- a/codes/csharp/chapter_tree/avl_tree.cs +++ b/codes/csharp/chapter_tree/avl_tree.cs @@ -9,7 +9,7 @@ using NUnit.Framework; namespace hello_algo.chapter_tree { - // Tree class + /* AVL 树 */ class AVLTree { public TreeNode? root; // 根节点 diff --git a/codes/go/chapter_tree/avl_tree.go b/codes/go/chapter_tree/avl_tree.go index 74e681e9b..822f116c1 100644 --- a/codes/go/chapter_tree/avl_tree.go +++ b/codes/go/chapter_tree/avl_tree.go @@ -6,7 +6,7 @@ package chapter_tree import . "github.com/krahets/hello-algo/pkg" -/* AVL Tree*/ +/* AVL 树 */ type avlTree struct { // 根节点 root *TreeNode diff --git a/codes/java/chapter_tree/avl_tree.java b/codes/java/chapter_tree/avl_tree.java index 2699bb601..3d2b8d5e4 100644 --- a/codes/java/chapter_tree/avl_tree.java +++ b/codes/java/chapter_tree/avl_tree.java @@ -8,7 +8,7 @@ package chapter_tree; import include.*; -// Tree class +/* AVL 树 */ class AVLTree { TreeNode root; // 根节点 diff --git a/codes/swift/chapter_tree/avl_tree.swift b/codes/swift/chapter_tree/avl_tree.swift index f0ea2fcaa..08036686a 100644 --- a/codes/swift/chapter_tree/avl_tree.swift +++ b/codes/swift/chapter_tree/avl_tree.swift @@ -6,7 +6,7 @@ import utils -// Tree class +/* AVL 树 */ class AVLTree { fileprivate var root: TreeNode? // 根节点 diff --git a/codes/zig/chapter_tree/avl_tree.zig b/codes/zig/chapter_tree/avl_tree.zig index cf2e5842e..d73286d2f 100644 --- a/codes/zig/chapter_tree/avl_tree.zig +++ b/codes/zig/chapter_tree/avl_tree.zig @@ -5,7 +5,7 @@ const std = @import("std"); const inc = @import("include"); -// 平衡二叉树 +// AVL 树 pub fn AVLTree(comptime T: type) type { return struct { const Self = @This();