What is an efficient way to get the max concurrency in a list of tuples?
问题 I have been trying to solve this problem in an efficient way. The problem is: Problem Statement Given a list of tuples in the form [(start1, end1), (start2, end2), (start3, end3)....(startn, endn)] where start and end are positive integers. Each tuple is to represent a time window, for example: [(1, 3), (73, 80)...] . Find the time (integer) where max concurrency occurs and get the tuples where max concurrency occurs. Constraints: start and end are integers of time and are between 0 to n For