sortTransformedArray.js

@@ -1,24 +1,375 @@
-sortTransformedArray.js
+Given a sorted array of integers nums and integer values a, b and c.%0AApply a function of the form f(x) = ax2 + bx + c to each element x in the array.%0A%0AThe returned array must be in sorted order.%0A%0AExpected time complexity: O(n)%0A%0AExample:%0Anums = %5B-4, -2, 2, 4%5D, a = 1, b = 3, c = 5,%0A%0AResult: %5B3, 9, 15, 33%5D%0A%0Anums = %5B-4, -2, 2, 4%5D, a = -1, b = 3, c = 5%0A%0AResult: %5B-23, -5, 1, 7%5D
 %0A

add desc