Python O(1)
\n        stones = [a, b, c]\n        stones.sort()\n        s1, s2, s3 = stones[0], stones[1], stones[2]\n        if s3 - s2 == s2 - s1 == 1:\n            retu
```\n        stones = [a, b, c]\n        stones.sort()\n        s1, s2, s3 = stones[0], stones[1], stones[2]\n        if s3 - s2 == s2 - s1 == 1:\n            return [0, 0]\n        else:\n            if min(s3 - s2, s2 - s1) <= 2:\n                return [1, s3 - s1 - 2]\n            else:\n                return [2, s3 - s1 - 2]\n```
[]