Given an integer, n, return the least number of perfect square numbers that sum to n.
A perfect square is an integer that is the square of an integer. In other words, it is an integer that is the result of multiplying a whole integer by itself. For example,
1 ,4 ,9 , and16 are perfect squares, but3 ,5 , and11 are not.
Constraints:
Given an integer, n, return the least number of perfect square numbers that sum to n.
A perfect square is an integer that is the square of an integer. In other words, it is an integer that is the result of multiplying a whole integer by itself. For example,
1 ,4 ,9 , and16 are perfect squares, but3 ,5 , and11 are not.
Constraints: