Find Available Appointments

Medium

📝 Description

Given booked slots, find available time slots.

Input Format

booked = ["10:00", "11:00"], all_slots = ["10:00", "11:00", "12:00"]

Output Format

["12:00"]

Constraints

Number of slots ≤ 1000

🔍 Sample Input

["10:00", "11:00"], ["10:00", "11:00", "12:00"]
            

✅ Sample Output

["12:00"]
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run