Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithmzuo/algorithm-journey
/ addAns
Method
addAns
src/class185/Code07_HideSeek1.java:308–312 ·
view source on GitHub ↗
(int x)
Source
from the content-addressed store, hash-verified
306
}
307
308
public
static
void
addAns(
int
x) {
309
if
(sonMax[x].size() >= 2) {
310
maxDist.add(sonMax[x].first() + sonMax[x].second());
311
}
312
}
313
314
public
static
void
delAns(
int
x) {
315
if
(sonMax[x].size() >= 2) {
Callers
3
on
Method · 0.95
off
Method · 0.95
prepare
Method · 0.95
Calls
4
first
Method · 0.80
second
Method · 0.80
size
Method · 0.45
add
Method · 0.45
Tested by
no test coverage detected