Watch 10 video solutions for Sum of Square Numbers, a medium level problem involving Math, Two Pointers, Binary Search. This walkthrough by NeetCode has 62,696 views views. Want to try solving it yourself? Practice on FleetCode or read the detailed text solution.
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 = 5
Example 2:
Input: c = 3 Output: false
Constraints:
0 <= c <= 231 - 1