Squares of Signed Integers in Ascending Order

Asked at Amazon · Coding Questions · Difficulty: Easy

The squares are `16, 1, 0, 9, 100`; in ascending order they are `0, 1, 9, 16, 100`.

Loading the problem…