Loading...
The Letter Frequency Map
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- easy
- Seniority
- junior, mid
Problem
A text analysis pipeline needs to build a character frequency profile for each incoming document. Given a string, return a dictionary mapping each unique character to the number of times it appears. Include spaces and punctuation.
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.