meetings = [[1, 3], [2, 4], [3, 5], [1, 2]]
meetings.sort(key=lambda x: x[1])
count = 0
end_time = 0
for start, end in meetings:
if start >= end_time:
count += 1
end_time = end
print(count)
To embed this project on your website, copy the following code and paste it into your website's HTML: