Loading...
Merge Counters
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
Partial aggregation results arrive from parallel workers as separate counter dicts that need to be merged. Return a single merged dict; when both dicts share a key, sum their values.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.