Java Readable solution
\n\n public int[] numMovesStones(int a, int b, int c) {\n        int [] movesResult = new int[2];\n        int [] stones=new int []{a,b,c};   \n        Arrays.s
\n```\n public int[] numMovesStones(int a, int b, int c) {\n        int [] movesResult = new int[2];\n        int [] stones=new int []{a,b,c};   \n        Arrays.sort(stones);\n        \n        int xyDistance=stones[1]-stones[0]-1;\n        int yzDistance=stones[2]-stones[1]-1;\n        \n        if(xyDistance>1 && yzDistance>1)\n            movesResult[0]=2;\n        else if(xyDistance>=1 || yzDistance>=1)\n            movesResult[0]=1;\n        \n        movesResult[1]=xyDistance+yzDistance;        \n        \n        return movesResult;\n    }\n```
[]