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` (with `a` never smaller than `b`) the way you would on paper, some columns force a borrow from the next limb up. Return the limb indices where a borrow is taken, lowest first.
Summary
In grade-school subtraction you scribble a mark each time you borrow. Recover those marks.
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