Waymo logoWaymo
Coding·45 minMembers

Sort a Quadratic-Transformed Sorted Array

Members only

Phone screen: given coefficients `a, b, c` of a quadratic `f(x) = ax² + bx + c` and a sorted integer array, return the sorted array of `f(nums[i])`. `a` may be negative — solve in O(n) with a two-poin...

SWE
array
two-pointer
math
medium
Frequency
Single report
Last asked
2026-03-23
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...