The Status Board
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L4
Problem
Parse Nginx combined-format log lines. Return a 2-element list: [status_counts_dict, top_3_paths_list]. status_counts maps each status code (as string) to its count. top_3_paths lists the three most-requested paths (query strings stripped) in descending count; tie-break by path alphabetically. If fewer than 3 distinct paths exist, return all of them.
Summary
Make sense of a pile of raw Nginx access logs.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.