LeetCode Solutions/March 2022 LeetCoding Challenge/Broken Calculator/Broken Calculator.java
<filename>LeetCode Solutions/March 2022 LeetCoding Challenge/Broken Calculator/Broken Calculator.java<gh_stars>0class Solution {
    public int brokenCalc(int startValue, int target) {
        int result = 0;
        while(startValue < target){
            result++;
            if(target % 2 > 0){
                target++;
            } else{
                target /= 2;
            }
        }
        return result + startValue - target;
    }
}