Given a non-negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c.
Input: 5
Output: true
Explanation: 1 * 1 + 2 * 2 = 5
Input: 3
Output: false
Given a non-negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c.
Input: 5
Output: true
Explanation: 1 * 1 + 2 * 2 = 5
Input: 3
Output: false