Linear Interpolator
Linear Interpolator
Implement a linear interpolator. You are given data points sorted by strictly increasing x-coordinate and a set of query x-coordinates. Return the linearly interpolated y-value...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
