Problem 360 · Medium

Sort Transformed Array

Transform sorted values with a quadratic and compare endpoint candidates to construct the transformed array in sorted order.

Open the interactive visualisation