Algorithm · Bloomberg · Medium
Problem: Identify Duplicate Records Within a 60-Second Window You receive a sequence of content records ordered by timestamp, allowing equal timestamps. Every record contains these fields: The fields mean: id is a unique string used to identify the record. content is the record's body text. title is its title. timestamp is its integer arrival time, measured in seconds. Two records match as duplicates when their content and title are both identical and the difference between…
Checking your access…