You are viewing a single comment's thread. Return to all comments →
Java one-liner:
static String catAndMouse(int x, int y, int z) { return Math.abs(x - z) < Math.abs(y - z) ? "Cat A" : Math.abs(x - z) > Math.abs(y - z) ? "Cat B" : "Mouse C"; }
Seems like cookies are disabled on this browser, please enable them to open this website
Cats and a Mouse
You are viewing a single comment's thread. Return to all comments →
Java one-liner: