MCPcopy 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

onMethod · 0.95
offMethod · 0.95
prepareMethod · 0.95

Calls 4

firstMethod · 0.80
secondMethod · 0.80
sizeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected