Search⌘ K
AI Features

Solution: Sum of Square Numbers

Let's solve the Sum of Square Numbers problem using the Two Pointers pattern.

Statement

Given a non negative integer c, determine whether there exist integers a and b such that a2+b2=ca^2 + b^2 = c. Return true if such integers exist, otherwise return false.

Note: a and b are allowed to be 0 ...