Loading...
Character Occurrence Map
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- easy
- Seniority
- senior
Problem
The NLP preprocessing stage needs a clean character frequency distribution. Write a function that takes a string and returns [character, count] pairs for each unique alphabetic character, sorted alphabetically, all lowercase.
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.