Aggregate Logs by Status Code (count and average latency)

Process service logs and aggregate statistics by HTTP status_code.

Each log entry contains:

  • status_code (e.g., 200/404/500)
  • response_time_ms (non-negative integer)

For each status code, ou...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: