Loading interview...

The Bug Spotter

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

Interview Prompt

Our code review tool flags functions whose output does not match expectations. Write a function called fix_running_average that computes the running average of a list of numbers. The broken version is provided. It has two bugs. Fix them so that fix_running_average([10, 20, 30]) returns [10.0, 15.0, 20.0].

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