package leetcode;

/**
 * https://leetcode.com/problems/reach-a-number/
 */
public class Problem754 {
    public int reachNumber(int target) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem754 prob = new Problem754();
        System.out.println(prob.reachNumber(3)); // 2
        System.out.println(prob.reachNumber(2)); // 3
    }
}

@@ -314,71 +314,449 @@
 ber(
-3
+1
 )); // 
-2%0A        System.out.println(prob.reachNumber(2)); // 3
+1%0A        System.out.println(prob.reachNumber(2)); // 3%0A        System.out.println(prob.reachNumber(3)); // 2%0A        System.out.println(prob.reachNumber(4)); // 3%0A        System.out.println(prob.reachNumber(5)); // 5%0A        System.out.println(prob.reachNumber(6)); // 3%0A        System.out.println(prob.reachNumber(7)); // 5%0A        System.out.println(prob.reachNumber(8)); // 4%0A        System.out.println(prob.reachNumber(9)); // 5
 %0A   

Update problem 754