package
Version:
v0.0.0-...-5cc1d31
Opens a new window with list of versions in this module.
Published: Jul 21, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
平衡二叉树
LL, right rotation:
x y
/ / \
y --> z x
/
z
RR, left rotation:
x y
\ / \
y --> x z
\
z
LR, left right rotation:
x x z
/ / / \
y --> z --> y x
\ /
z y
RL, right left rotation:
x x z
\ \ / \
y --> z --> x y
/ \
z y
Documentation
¶
Avl 平衡二叉树
func (tree *Avl) Insert(value int)
Insert 插入
func (tree *Avl) Remove(value int)
Remove 删除
Source Files
¶
Click to show internal directories.
Click to hide internal directories.