JavaScript 3-Line Solution
Runtime: 60 ms, faster than 94.27% of JavaScript online submissions\nMemory Usage: 33.8 MB, less than 80.87% of JavaScript online submissions\n\n\nconst numMove
Runtime: 60 ms, faster than 94.27% of JavaScript online submissions\nMemory Usage: 33.8 MB, less than 80.87% of JavaScript online submissions\n\n```\nconst numMovesStones = (a, b, c) => {\n  const [x, y, z] = [Math.abs(a - b), Math.abs(b - c), Math.abs(c - a)];\n  const [min, max] = [Math.min(x, y, z), Math.max(x, y, z)];\n  return 2 === max ? [0, 0] : [min < 3 ? 1 : 2, max - 2];\n};\n```
['JavaScript']