求米儿!
## Question 1: Process Execution Time
Given a list of processes with their start and end times (inclusive), find the total amount of time during which at least one process was running.
The function `getExecutionTime` will take two inputs:
- `int start[n]`: the start times of the processes
- `int end[n]`: the end times of the processes
The function should return aals are **inclusive** (both start and end times are included)
- You need to merge overlapping intervals
- Return the sum of all merged interval lengths
- Time calculation: `end - start + 1` (since inclusive)
第二题如图
|