Algorithm · Karat · Easy
You receive an access log whose entries are in no particular order. Each entry records three things: the moment of access as a time in seconds, the ID of the user who made the access, and the ID of the resource that was accessed. For each user that appears in the log, report the earliest and the latest timestamp at which that user accessed anything. Examples Example