c++| easy | 100% faster than all
\n\n# Code\n\nclass Solution {\npublic:\n  vector<int> numMovesStones(int a, int b, int c) {\n  vector<int> s = { a, b, c };\n  sort(begin(s), end(s));\n  if (s
\n\n# Code\n```\nclass Solution {\npublic:\n  vector<int> numMovesStones(int a, int b, int c) {\n  vector<int> s = { a, b, c };\n  sort(begin(s), end(s));\n  if (s[2] - s[0] == 2) return { 0, 0 };\n  return { min(s[1] - s[0], s[2] - s[1]) <= 2 ? 1 : 2, s[2] - s[0] - 2 };\n}\n};\n```
['C++']