DataDriven
LearnPracticeInterviewDiscussDailyJobs

The Number Miner

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
L3

Problem

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.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.

Related

  • All Practice Problems
  • Mock Interview Mode
  • Python Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons