Solve: Close Far
Imported By: Geoffrey Challen
/ Version: 2021.7.0
Given three int
s, a
, b
, and c
, return true
if one of b
or c
is close, differing from a by at most 1,
while the other is far, differing from both other values by 2 or more.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.boolean closeFar(int a, int b, int c) {
return false;
}