FastPrepFastPrep
Problem Brief

Last to Be Checked 🐳

OA

In the bustling excitement of an event's beginning, attendees flock eagerly, each with their own story to tell. As time ticks on from the event's start, they queue up for an ID check, a gateway to the festivities. But there's a catch – only 10 hopefuls can stand in line at once.

Your mission? Find out when the last person's ID will be checked, measured in seconds from the event's kickoff.

For original prompt, pls refer to source images π–‘Όπ–€£π–₯§π–‘Όπ“‹Όπ–€£π–₯§π“‹Όπ“Š

1Example 1

Input
moments = [1, 6, 9, 502]
Output
1201
Explanation
Explanation not found κ’°ΰ¦ŒπŸ¦¦ΰ»’κ’±

Constraints

Limits and guarantees your solution can rely on.

Unknown for now
public int lastToBeChecked(int[] moments) {
    // write your code here
}
Input

moments

[1, 6, 9, 502]

Output

1201

Sign in to submit your solution.