โ† Zomato questions

Sort values by y using a quadratic equation and parabola minima

Filed under Zomato

The question

Given a set of x, y values sorted by x based on a quadratic equation forming an upward parabola, output the values sorted by y efficiently by finding the minima and using two pointers.

No write-up yet. Related questions below have one.

Related Zomato questions

Collected from public candidate posts and coding forums. Updated Nov 2026.