Sort Transformed Array

Given an integer array nums sorted in nondecreasing order and three integers a, b, and c, define:

f(x) = a*x² + b*x + c

Apply this function to every element and return the transformed valu...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: