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.fun closeFar(
a: Int,
b: Int,
c: Int,
): Boolean {
return false
}