Tap here to switch tabs
Problem
Submissions

Problem: Sum of Square Numbers

med
30 min
Try to solve the Sum of Square Numbers problem.

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 00.

Constraints:

  • 00 \leq c 2311\leq 2^{31} - 1

Unlock AI-Powered LearningUpgrade to smarter learning with instant explanations of Ask Agent, Personalized Interview Prep, Real-World Projects, 3 AI Mock Interviews per month, and Personalized Paths
Tap here to switch tabs
Problem
Submissions

Problem: Sum of Square Numbers

med
30 min
Try to solve the Sum of Square Numbers problem.

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 00.

Constraints:

  • 00 \leq c 2311\leq 2^{31} - 1

Unlock AI-Powered LearningUpgrade to smarter learning with instant explanations of Ask Agent, Personalized Interview Prep, Real-World Projects, 3 AI Mock Interviews per month, and Personalized Paths