DataDrivenDataDriven
LearnPracticeInterviewDiscussDailyJobs

The Character Map

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

Domain
Python
Difficulty
easy
Seniority
L6

Problem

Each record in `records` is a parsed log line: a single-character channel tag paired with the number of bytes that line carried. Return a dict mapping each channel tag to the total bytes across all lines that carried it.

Summary

Every character leaves a trace. Add them up.

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