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

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write your python solution with real code execution
  4. Get instant feedback and a hire/no-hire decision