Practice Sum of Square Numbers
Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.
Problem Statement
Given a nonnegative integer c, return whether there are integers a and b such that a^2 + b^2 = c.
Source: Sum of Square Numbers on LeetCode. Use the original task for its coding environment and submissions.
Examples
# Example 1
Input
c = 5
Output
true
# Example 2
Input
c = 3
Output
false
Constraints
0 <= c <= 2^31 - 1
Related LeetCode Problems
Practice more problems similar to Sum of Square Numbers.
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.