@@ -0,0 +1,306 @@
+public class Solution %7B%0A    public int integerReplacement(int n) %7B%0A        if(n==1)%7B%0A            return 0;%0A        %7D%0A        if(n%252 == 0)%7B%0A            return 1+integerReplacement(n/2);%0A        %7Delse%7B%0A            return (2 + Math.min(integerReplacement(n/2), integerReplacement(n/2 + 1)));%0A        %7D%0A    %7D%0A%7D

add solution for 397