package leetcode;

/**
 * https://leetcode.com/problems/sum-of-square-numbers/
 */
public class Problem633 {
    public boolean judgeSquareSum(int c) {
        // TODO
        return false;
    }

    public static void main(String[] args) {
        Problem633 prob = new Problem633();
        System.out.println(prob.judgeSquareSum(5)); // true
        System.out.println(prob.judgeSquareSum(3)); // false
    }
}

@@ -157,15 +157,221 @@
     
-// TODO
+for (int i = 1; i %3C= c / 2; i++) %7B%0A            double a = Math.sqrt(i);%0A            double b = Math.sqrt(c - i);%0A            if (a == (int) a && b == (int) b) %7B%0A                return true;%0A            %7D%0A        %7D
 %0A   
@@ -545,16 +545,16 @@
 // true%0A
-
         
@@ -606,16 +606,93 @@
 / false%0A
+        System.out.println(prob.judgeSquareSum(Integer.MAX_VALUE)); // false%0A
     %7D%0A%7D%0A

Update problem 633