Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithmzuo/algorithm-journey
/ add
Method
add
src/class148/Code01_AVL1.java:103–105 ·
view source on GitHub ↗
(int num)
Source
from the content-addressed store, hash-verified
101
102
// 增加数字num,重复加入算多个词频
103
public
static
void
add(
int
num) {
104
head = add(head, num);
105
}
106
107
// 当前来到i号节点,num这个数字一定会加入以i为头的树
108
// 树结构有可能变化,返回头节点编号
Callers
1
main
Method · 0.95
Calls
2
up
Method · 0.95
maintain
Method · 0.95
Tested by
no test coverage detected