Example 1
Example 2
Example 3
2 <= n <= 3001 <= requirements.length <= nrequirements[i] = [endi, cnti]0 <= endi <= n - 10 <= cnti <= 400The input is generated such that there is at least one i such that endi == n - 1.The input is generated such that all endi are unique.Example 1
Example 2
Example 3
2 <= n <= 3001 <= requirements.length <= nrequirements[i] = [endi, cnti]0 <= endi <= n - 10 <= cnti <= 400The input is generated such that there is at least one i such that endi == n - 1.The input is generated such that all endi are unique.