Welcome to the Python screen.
The question is on your right: Find First Matching Event Timestamp. Read through the requirements first.
Run and submit your code as often as you need. You also have five interviewer messages this session - want to talk through your approach, or are you ready to start coding?
In a Google Photos mobile client, event timestamps may arrive unsorted after local batching. Given an integer array timestamps and an integer target, return the index of the first occurrence of target after sorting the array in non-decreasing order. If target does not exist, return -1.
timestamps is a list of integers. target is an integer.target in the sorted version of timestamps, or -1 if not found.def first_sorted_occurrence(timestamps, target):