Skip to content

Files

Latest commit

Jul 24, 2019
b740881 · Jul 24, 2019

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 24, 2019
Jul 24, 2019

Given a positive integer n, find the smallest number of squared integers which sum to n.

For example, given n = 13, return 2 since 13 = 32 + 22 = 9 + 4.

Given n = 27, return 3 since 27 = 32 + 32 + 32 = 9 + 9 + 9.