Back to problems

Message Latency from Send/Receive CSV Logs

Algorithm · Amazon · Easy

Requirements Work with two CSV files: ComputeA-send.csv, which records when messages are sent, and ComputeB-receive.csv, which records when they are received. Every row contains a string message_type, a unique incrementing integer id, and an integer synchronized_timestamp. For each message found in both files, print message_type, id, latency, where latency = received_timestamp - sent_timestamp. Examples Because id 3 appears only in the send file, it does not appear in the…

Checking your access…