Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithmzuo/algorithm-journey
/ other
Method
other
src/class197/Code05_Boolean1.java:81–83 ·
view source on GitHub ↗
(int x)
Source
from the content-addressed store, hash-verified
79
}
80
81
public
static
int
other(
int
x) {
82
return
x <= n ? x + n : x - n;
83
}
84
85
public
static
boolean conflict(
int
x) {
86
return
find(x) == find(other(x));
Callers
2
conflict
Method · 0.95
compute
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected