Search⌘ K
AI Features

Perfect Squares

Perfect Squares asks you to find the fewest perfect square numbers whose sum equals a given positive integer, counting repeated squares when necessary.

Statement

Given an integer, n, return the least number of perfect square numbers that sum to n. ...