Loading...
The Runner-Up
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- easy
- Seniority
- senior
Problem
Our auction system needs to determine the second-price bid. Write a function that returns the second-largest distinct value from a list of integers. Return None if fewer than 2 distinct values exist.
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.