You are given two startTime and endTime, both of length n, representing the active time intervals of n candidates. The startTime[i], endTime[i]
A candidate can form a team consisting of themselves and any other candidates whose active intervals overlap with their own interval. Two intervals overlap if they share at least one common unit of time.
Return an integer denoting the maximum team size that can be formed by any candidate.
Constraints:
n startTime.length endTime.length
startTime[i] endTime[i]
You are given two startTime and endTime, both of length n, representing the active time intervals of n candidates. The startTime[i], endTime[i]
A candidate can form a team consisting of themselves and any other candidates whose active intervals overlap with their own interval. Two intervals overlap if they share at least one common unit of time.
Return an integer denoting the maximum team size that can be formed by any candidate.
Constraints:
n startTime.length endTime.length
startTime[i] endTime[i]