C++ [0 ms] Solution
\nclass Solution {\npublic:\n    vector<int> numMovesStones(int a, int b, int c) {\n        vector<int> arr = {a, b, c};\n        vector<int> ans;\n        sort
```\nclass Solution {\npublic:\n    vector<int> numMovesStones(int a, int b, int c) {\n        vector<int> arr = {a, b, c};\n        vector<int> ans;\n        sort(arr.begin(), arr.end());\n        a = arr[0], b = arr[1], c = arr[2];\n        int max = c - a - 2;\n        int min = 0;\n        if(abs(b - a) == 2 || abs(c - b) == 2)\n            min = 1;\n        else {\n            if(a < b - 1)\n                min++;\n            if(b < c - 1)\n                min++;\n        }\n        ans.push_back(min);\n        ans.push_back(max);\n        return ans;\n    }\n};\n```
['C']