Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
Unimodal Cost Function Minimum
Medium
Unimodal Cost Function Minimum
You are given a unimodal cost function f(x) = A * (x - C)^2 + D defined over the interval [lo, hi], where A > 0. The function has exactly one global minimum at x = C. Given the interval bounds lo and hi, a precision threshold precision, and the coefficients A, C, D, return any value x* in [lo, hi] such that |x* - C| <= precision.
...
Asked at:Uber
More Uber interview questions
- Straight Line Sequence Searchmedium
- Capital Gains Tax Calculatorhard
- OA [CodeSignal] Adventure Levelshard
- OA [CodeSignal] Balanced Numbers in Permutationhard
- OA [CodeSignal] Count Palindrome Paths in Treehard
- OA [CodeSignal] Final Prices After Discountmedium
- OA [CodeSignal] Jump Gamemedium
- OA [CodeSignal] Longest Subsequence With Limited Summedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.