Linear Interpolation
Given a series of data points and a target x value, use linear interpolation to predict the y value corresponding to the target x. Assume all points lie on a straight line. Use the linear interpolatio...
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:
