Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Perfect Squares
Bookmark
Input
Example 1 (3)
Example 2 (2)
Small (4)
Perfect square (1)
Medium (2)
Custom
n
=
12
1
4
9
Perfect Squares
DP Array (Min Squares)
algo
master
.
io
Step:
Starting perfect squares. Find least number of perfect squares that sum to 12
0 / 76
Input
Example 1 (3)
Example 2 (2)
Small (4)
Perfect square (1)
Medium (2)
Custom
n
=
12
0 / 76
1
4
9
Perfect Squares
DP Array (Min Squares)
algo
master
.
io
Step:
Starting perfect squares. Find least number of perfect squares that sum to 12