0633. Sum of Square Numbers
https://leetcode.com/problems/sum-of-square-numbers
Description
Given a non-negative integer c, decide whether there're two integers a and b such that a2 + b2 = c.
Example 1:
**Input:** c = 5
**Output:** true
**Explanation:** 1 * 1 + 2 * 2 = 5Example 2:
**Input:** c = 3
**Output:** falseExample 3:
**Input:** c = 4
**Output:** trueExample 4:
**Input:** c = 2
**Output:** trueExample 5:
**Input:** c = 1
**Output:** trueConstraints:
0 <= c <= 231 - 1
ac
Previous0632. Smallest Range Covering Elements from K ListsNext0634. Find the Derangement of An Array
Last updated
Was this helpful?