Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Merge the overlapping meetings and sort the new meetings timings.
Return the sum of difference between the end time of a meeting and the start time of the next meeting for all adjacent pairs.