All Downloads are FREE. Search and download functionalities are using the official Maven repository.

g0601_0700.s0633_sum_of_square_numbers.readme.md Maven / Gradle / Ivy

There is a newer version: 1.30
Show newest version
633\. Sum of Square Numbers

Medium

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy