Interview Guides
Given a list of packet events events, where each event is a pair [timestamp, event_id] sorted by non-decreasing timestamp, and an integer window_size, return True if any event_id appears at least twice such that the difference between the two timestamps is at most window_size. Otherwise, return False.
1 <= len(events) <= 10^50 <= timestamp <= 10^9events[i] = [timestamp, event_id]events is sorted by non-decreasing timestamp0 <= window_size <= 10^9