As reported: Scale AI backend phone screen, India (May 2025), "Party Games": (a) find all time zones (mapped to cities) where a party is going on; (b) find all dead-zone hours for a zone — the hours with no party between the first party that starts and the latest party that ends.
Implement part (b). You get the parties of one time zone as [startHour, endHour) pairs of whole hours within one day: a party covers the hours startHour, startHour + 1, …, endHour − 1. Parties may overlap and come in any order.
Return, in increasing order, every dead-zone hour: an hour h with firstStart ≤ h < lastEnd that no party covers, where firstStart is the earliest start and lastEnd the latest end. With no parties, return an empty list.
Example 1
parties = [[18,20],[22,24],[9,11]]
Output: [11,12,13,14,15,16,17,20,21]
Example 2
parties = [[10,14],[12,16],[16,18]]
Output: []
Overlapping and touching parties leave no gap.
Constraints: 0 ≤ parties.length ≤ 1000; 0 ≤ startHour < endHour ≤ 24.
Code runner format: the number of parties, then start end per line. Implement deadZoneHours(parties); the harness prints the list as [a,b,…].