Given a non-negative integer c, your task is to decide whether there’re two integers a and b such that a2 + b2 = c.
Example 1:
1 | Input: 5 |
Example 2:
1 | Input: 3 |
1 | public class Solution { |
Given a non-negative integer c, your task is to decide whether there’re two integers a and b such that a2 + b2 = c.
1 | Input: 5 |
1 | Input: 3 |
1 | public class Solution { |