Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 374 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 374 Bytes

41.Sum of Square Numbers

Description

Given a non-negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c.

Example1

Input: 5
Output: true
Explanation: 1 * 1 + 2 * 2 = 5

Example2

Input: 3
Output: false

From

LeetCode