Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithmzuo/algorithm-journey
/ up
Method
up
src/class153/FollowUp1.java:34–36 ·
view source on GitHub ↗
(int i)
Source
from the content-addressed store, hash-verified
32
public
static
int
[] size =
new
int
[MAXN];
33
34
public
static
void
up(
int
i) {
35
size[i] = size[left[i]] + size[right[i]] + 1;
36
}
37
38
public
static
int
lr(
int
i) {
39
return
right[father[i]] == i ? 1 : 0;
Callers
2
rotate
Method · 0.95
remove
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected