[1, 4], [2, 5], [7, 9] Shows as false in Can attend all appointments
but [6, 2], [6, 1], [8, 12] shows true. I think this also should be false as 6,2 and 6,1 are overlapping. Isn’t it?
Course: Grokking the Coding Interview: Patterns for Coding Questions - Learn Interactively
Lesson: Conflicting Appointments (medium) - Grokking the Coding Interview: Patterns for Coding Questions