Class Solution
java.lang.Object
g0601_0700.s0633_sum_of_square_numbers.Solution
633 - Sum of Square Numbers.<p>Medium</p>
<p>Given a non-negative integer <code>c</code>, decide whether there’re two integers <code>a</code> and <code>b</code> such that <code>a<sup>2</sup> + b<sup>2</sup> = c</code>.</p>
<p><strong>Example 1:</strong></p>
<p><strong>Input:</strong> c = 5</p>
<p><strong>Output:</strong> true</p>
<p><strong>Explanation:</strong> 1 * 1 + 2 * 2 = 5</p>
<p><strong>Example 2:</strong></p>
<p><strong>Input:</strong> c = 3</p>
<p><strong>Output:</strong> false</p>
<p><strong>Constraints:</strong></p>
<ul>
<li><code>0 <= c <= 2<sup>31</sup> - 1</code></li>
</ul>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Solution
public Solution()
-
-
Method Details
-
judgeSquareSum
public boolean judgeSquareSum(int c)
-