The Trade Log Aggregator
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L4
Problem
Given CSV trade log lines (date,process,host,log_message,bytes), extract the exchange name from process (everything before the first underscore). Per (date, exchange), sum bytes. Return a list of dicts {'date', 'exchange', 'total_bytes'} sorted by (date ascending, exchange ascending).
Summary
Every trade left a footprint.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.