Java 2 lines
\n    public int[] numMovesStones(int a, int b, int c) {\n        int x = Math.min(a, Math.min(b, c)), z = Math.max(a, Math.max(b, c)), y = a - x - z + b + c;\n
```\n    public int[] numMovesStones(int a, int b, int c) {\n        int x = Math.min(a, Math.min(b, c)), z = Math.max(a, Math.max(b, c)), y = a - x - z + b + c;\n        return new int[]{z - y > 2 && y - x > 2 ? 2 : (z - y == 1 && y - x == 1 ? 0 : 1), z - x - 2};\n    }\n```
[]