Marks :10
: 12 | : 4
Given an integer $$$n$$$, return the least number of perfect square numbers that sum to $$$n$$$.
The input consists of a single integer $$$n$$$ $$$-$$$ $$$(1 \leq n \leq 10^9)$$$.
The output should consist of a single integer $$$-$$$ the minimum number of perfect square numbers that sum to $$$n$$$.
5
2
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.