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

Method check

src/class174/Code05_Lcm1.java:113–117  ·  view source on GitHub ↗
(int x, int y, int a, int b)

Source from the content-addressed store, hash-verified

111 }
112
113 public static boolean check(int x, int y, int a, int b) {
114 int fx = find(x);
115 int fy = find(y);
116 return fx == fy && maxa[fx] == a && maxb[fx] == b;
117 }
118
119 public static void compute(int l, int r) {
120 // 重要剪枝

Callers 1

computeMethod · 0.95

Calls 1

findMethod · 0.95

Tested by

no test coverage detected