Class Solution
- java.lang.Object
-
- g0601_0700.s0633_sum_of_square_numbers.Solution
-
public class Solution extends Object
633 - Sum of Square Numbers.Medium
Given a non-negative integer
c
, decide whether there’re two integersa
andb
such thata2 + b2 = c
.Example 1:
Input: c = 5
Output: true
Explanation: 1 * 1 + 2 * 2 = 5
Example 2:
Input: c = 3
Output: false
Constraints:
0 <= c <= 231 - 1
-
-
Constructor Summary
Constructors Constructor Description Solution()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
judgeSquareSum(int c)
-