DataDriven
LearnPracticeInterviewDiscussDailyJobs

Quantile Calculator

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

Domain
Python
Difficulty
easy
Seniority
L4

Problem

Given a list of numbers and percentile (0-100), return the value at that percentile using linear interpolation. The index is percentile/100 * (n - 1); if fractional, linearly interpolate between the floor and ceiling indices of the sorted values.

Summary

Mark the boundary value at a given point.

Practice This Problem

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

Related

  • All Practice Problems
  • Mock Interview Mode
  • Python Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons