Loading...
The Encoded Signal
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- mid
Problem
Our telemetry wire format encodes letter frequencies in a compact string representation. Write a function called decode_frequency that parses this encoding and returns a 26-element list for a through z. Digits 0-9 map to a-j directly. A two-digit number followed by '#' maps to k(10) through z(26). A number in parentheses after a character indicates repetitions; without parentheses, the count is 1.
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.