JavaScript straightforward solution
javascript\n/**\n * @param {number} a\n * @param {number} b\n * @param {number} c\n * @return {number[]}\n */\nvar numMovesStones = function(a, b, c) {\n  [a, b
```javascript\n/**\n * @param {number} a\n * @param {number} b\n * @param {number} c\n * @return {number[]}\n */\nvar numMovesStones = function(a, b, c) {\n  [a, b, c] = [a, b, c].sort((a, b) => a - b);\n  let dis1 = b - a;\n  let dis2 = c - b;\n  if (dis1 > dis2) [dis1, dis2] = [dis2, dis1];\n  let min;\n  if (dis1 === 1) {\n    if (dis2 === 1) min = 0;\n    else min = 1;\n  } else if (dis1 === 2) {\n    min = 1;\n  } else {\n    min = 2;\n  }\n  const max = dis1 + dis2 - 2;\n  return [min, max];\n};\n```
['JavaScript']