DataDrivenDataDriven
LearnPracticeInterviewDailyJobsCommunity

Carry the One

A medium Python mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.

Domain
Python
Difficulty
medium
Seniority
mid

Interview Prompt

We store counters too big for 64 bits as arrays of base-1,000,000,000 limbs, least significant limb first. Subtracting `b` from `a` the way you would on paper, some columns can't cover the limb below and have to borrow from the next one up. Return the limb indices where a borrow is taken.

Summary

In grade-school subtraction you scribble a mark each time you borrow. Recover those marks.

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

Related

  • All Mock Interviews
  • Practice Mode (untimed)
  • Python Interview Questions
  • Data Engineering Interview Prep Guide
  • Practice Problems
  • Daily Challenge