Letters in the Noise
A easy Python mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- Python
- Difficulty
- easy
- Seniority
- L5
Interview Prompt
A text-cleaning step in your pipeline needs a per-letter tally of the raw strings flowing through it. For a given `s`, return how many times each letter appears, treating uppercase and lowercase as the same letter and ignoring any character that is not a letter. Give the results as `[letter, count]` pairs in lowercase, ordered alphabetically.
Summary
Case and punctuation are distractions. Find what each letter really weighs.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your python solution with real code execution
- Get instant feedback and a hire/no-hire decision