Algorithm · Tradedesk · Easy
As an event kicks off, attendees start arriving, each with a unique arrival moment, eager to join the fun. They must pass through an ID verification station, but the queue has a strict limit: at most 10 people can be waiting in line at any given time. Your task is to determine the exact time, in seconds from the event start, when the last attendee will complete their ID check. You are given a list of arrival times moments, where each element is the second an attendee shows…
Checking your access…