Implement monotonic x-y linear interpolation
Company: Tradedesk
Role: Data Scientist
Category: Coding & Algorithms
Difficulty: hard
Interview Round: Technical Screen
Quick Answer: This question evaluates a candidate's understanding of piecewise linear interpolation on strictly increasing x arrays, handling of out-of-range queries (error, clamp, or extrapolate), and the design of efficient interval-search strategies.