We're a place where coders share, stay up-to-date and grow their careers.
What counts as adjacent? Neighboring? Like the tests, I'm gonna assume that this only takes 3 inputs. But, Java:
class Utils { public static Number adjacent_product(float x, float y, float z) { return y*Math.max(x, z); } }
What counts as adjacent? Neighboring?
Like the tests, I'm gonna assume that this only takes 3 inputs.
But, Java: