The Number Miner
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
- L3
Interview Prompt
You're auditing a batch of JSON event payloads whose objects and arrays nest arbitrarily deep, and you need a tally of the integers buried inside them. Count how many times each genuine integer value appears anywhere across every payload, returning a map from the integer's string form to its total, where floats and booleans never count, not even a whole-looking `100.0` or a bare `true`.
Summary
JSON strings are hiding numeric secrets. Dig them out.
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