Loading...

Quantile Calculator

A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
easy
Seniority
mid

Problem

Our SLA monitoring system needs to compute latency percentiles without pulling in heavy libraries. Write a function that takes a list of response times and a percentile value (0 to 100), and returns the value at that percentile using linear interpolation when the percentile falls between two data points.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.