MCPcopy Create free account
hub / github.com/algorithmzuo/algorithm-journey / getCut

Method getCut

src/class194/Code07_Policija1.java:72–77  ·  view source on GitHub ↗
(int x, int y)

Source from the content-addressed store, hash-verified

70 }
71
72 public static int getCut(int x, int y) {
73 int a = Math.min(x, y);
74 int b = Math.max(x, y);
75 Integer ans = cutMap.get(((long) a << 32) | b);
76 return ans == null ? 0 : ans;
77 }
78
79 public static void tarjan(int u, int preEdge) {
80 dfn[u] = low[u] = ++cntd;

Callers 1

mainMethod · 0.95

Calls 2

maxMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected