Available question text
Given a sorted array nums and a quadratic function f(x)=ax^2+bx+c, transform each element by f and return the values in sorted order. The key is to exploit the parabola's shape (monotonic on each side of its vertex) with a two-pointer sweep to produce the sorted result in O(n) time.
Related questions
Continue with questions that share topics or the same question type.
- GCD Sort of an Array
Coding
- Minimum Pair Removal to Sort Array I
Coding
- Minimum Pair Removal to Sort Array II
Coding
- Minimum Replacements to Sort the Array
Coding · Array · Greedy · Math
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Meta
Leetcode 360. Sort Transformed Array
Reported Feb 1, 2026 · 2 source reports
SENIOR
Source snapshot: Nov 12, 2026
View source