← 返回 google 的题目列表Predict Smartphone Battery Life
类型:online_judge
Given the current battery level of a smartphone, predict how long the smartphone can still be used. Implement a linear interpolation algorithm. Feature matching based on characteristics of the smartphone should be considered for making predictions. Please provide complete requirements, test cases, and data scale details.
Example
Input
50% battery level
Expected usage data: [(10, 100), (20, 180), (30, 250)]