Message Latency from Send/Receive CSV Logs

Asked at Amazon · Coding Questions · Difficulty: Easy · Last asked May 27, 2026

Given send and receive CSV logs keyed by message type and id, print the latency (received minus sent timestamp) for every message that appears in both. Two CSV inputs `ComputeA-send.csv` (sent) and `ComputeB-receive.csv` (received); each row holds `message_type` (string), `id` (int), and `synchronized_timestamp` (int). Rows are not sorted by id.

Loading the problem…