C++: Simple, no arrays or loops
\nclass Solution {\npublic:\n    vector<int> numMovesStones(int a, int b, int c) {\n\t    // Sort so that a < b < c;\n        if (c < b) swap(c, b);\n        if
```\nclass Solution {\npublic:\n    vector<int> numMovesStones(int a, int b, int c) {\n\t    // Sort so that a < b < c;\n        if (c < b) swap(c, b);\n        if (c < a) swap(c, a);\n        if (b < a) swap(a, b);\n\t\t// Calculate distances a to b and b to c\n        int d1 = b - a - 1, d2 = c - b - 1;\n        return vector<int> {\n            !d1 && !d2 ? 0\n            : d1 <= 1 || d2 <= 1 ? 1 : 2\n            , d1 + d2\n        };\n    }\n};\n```
['C']