Loading interview...
The Roman Converter
A easy Python mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- Python
- Difficulty
- easy
- Seniority
- junior, mid
Interview Prompt
Our historical data pipeline ingests dates stored as Roman numerals. Write a function called roman_to_int that takes a Roman numeral string and returns its integer value. Valid symbols are I(1), V(5), X(10), L(50), C(100), D(500), M(1000). When a smaller value appears before a larger one, it is subtracted (IV = 4, IX = 9).
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your python solution with real code execution
- Get instant feedback and a hire/no-hire decision