Waymo·Software Engineer·Technical Phone Screen
- Given a sorted integer array and three coefficients a, b, c, apply the quadratic function f(x) = a*x^2 + b*x + c to every element and return the results in sorted order.
“My first instinct was to just map and sort, which is O(n log n) and they clearly wanted better.”