✅Java - Easy, Brute Force, Short and Understandable Code!!!
```\nclass Solution {\n    public int minCostSetTime(int startAt, int moveCost, int pushCost, int tar) {\n     \n        int min=tar/60, sec=tar%60, minCost=(mo
```\nclass Solution {\n    public int minCostSetTime(int startAt, int moveCost, int pushCost, int tar) {\n     \n        int min=tar/60, sec=tar%60, minCost=(moveCost+pushCost)*4;\n        \n        if(min>99) { min--; sec+=60; } // this is required to do because if tar>=6000 then min is 100 which is not possible as it atmost can be 99mins\n        \n        while(min>=0&&sec<=99) { // this while loop will work for atmost 2 iterations\n            tar=min*100+sec;\n            char arr[]=(""+tar).toCharArray();\n            int sameMove=0;\n            for(int i=0;i<arr.length-1;i++)\n                if(arr[i]==arr[i+1])\n                    sameMove++;\n            if(startAt==arr[0]-\'0\')\n                minCost=Math.min(minCost,pushCost*arr.length+moveCost*(arr.length-1-sameMove));\n            else\n                minCost=Math.min(minCost,pushCost*arr.length+moveCost*(arr.length-sameMove));\n            min--; sec+=60;\n        }\n        return minCost;\n    }\n}\n````\nI really hope you like the solution!!!\nIf it was helpful then please **upvote** it:))
['Java']