Loading...
The Alphabet Sorter
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 document management system needs to organize strings by their initial character for efficient lookup. Given a list of strings, return a dictionary where each key is a lowercase first character and the value is a list of all strings starting with that character, preserving original order within each group.
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.