Daily challenge for 2026-07-12
558. Office Hot Desk Collision
You are managing a hot-desking office. Employees submit reservations in chronological order as a list of pairs [employee, desk_id]. A desk can only be claimed by the first employee who reserves it. Write a function to find the name of the first employee whose reservation fails because the desk is already occupied. If all reservations are successful, return an empty string "".
Example:Input: reservations = [["Alice", 101], ["Bob", 102], ["Charlie", 101]]Output: "Charlie"
Run this challenge interactively in Python or JavaScript when the app loads.