The Character Map
An easy Python mock interview question on DataDriven, with an AI interviewer who asks follow-up questions and a hire or no-hire decision at the end.
- Domain
- Python
- Difficulty
- easy
- Seniority
- L6
Interview Prompt
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.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write and run your Python against test cases
- Answer the interviewer's follow-up questions, then get a hire or no-hire decision