mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-07 15:01:58 +08:00
1. Add build script for Java.
2. Add height limitation for code blocks in extra.css. 3. Fix "节点" to "结点".
This commit is contained in:
@ -43,7 +43,7 @@ class AVLTree:
|
||||
# 更新结点高度
|
||||
self.__update_height(node)
|
||||
self.__update_height(child)
|
||||
# 返回旋转后子树的根节点
|
||||
# 返回旋转后子树的根结点
|
||||
return child
|
||||
|
||||
""" 左旋操作 """
|
||||
@ -56,7 +56,7 @@ class AVLTree:
|
||||
# 更新结点高度
|
||||
self.__update_height(node)
|
||||
self.__update_height(child)
|
||||
# 返回旋转后子树的根节点
|
||||
# 返回旋转后子树的根结点
|
||||
return child
|
||||
|
||||
""" 执行旋转操作,使该子树重新恢复平衡 """
|
||||
|
Reference in New Issue
Block a user