public class Solution {
    public int integerReplacement(int n) {
        if (n == 1) return 0;
        if (n % 2 == 0) return integerReplacement(n / 2) + 1;
        return Math.min(integerReplacement(n - 1) + 1, integerReplacement((n - 1) / 2 + 1) + 2);
    }
}

@@ -199,18 +199,20 @@
 ent(
+(
 n - 1) 
-+ 1
+/ 2)
 , in
@@ -248,13 +248,13 @@
 + 1)
+)
  + 2
-)
 ;%0A  

update #397