A company security system records badge access logs. You are given two string arrays keyName and keyTime, where keyName[i] and keyTime[i] correspond to the name of an employee and the time they used their keycard on a single day.
All access times are formatted as “HH:MM” in
An alert is raised for an employee if that employee uses their keycard
Return a list of all unique employee names who received an alert, sorted in ascending lexicographical order.
Constraints:
keyName.length, keyTime.length
keyName.length keyTime.length
keyTime[i] is in the format “HH:MM”.
[keyName[i], keyTime[i]] is unique.
keyName[i].length
keyName[i] contains only lowercase English letters.
A company security system records badge access logs. You are given two string arrays keyName and keyTime, where keyName[i] and keyTime[i] correspond to the name of an employee and the time they used their keycard on a single day.
All access times are formatted as “HH:MM” in
An alert is raised for an employee if that employee uses their keycard
Return a list of all unique employee names who received an alert, sorted in ascending lexicographical order.
Constraints:
keyName.length, keyTime.length
keyName.length keyTime.length
keyTime[i] is in the format “HH:MM”.
[keyName[i], keyTime[i]] is unique.
keyName[i].length
keyName[i] contains only lowercase English letters.