Merge Overlapping Intervals (InterviewBit)
Feb 13, 2021
Explanation
I just add the given Interval to the List<Interval> and sort it according to its start time. Then I started merging them ( the condition to merge them is if the current meeting start Time is coming inside the previous meeting start Time and end Time ).
I have written the code with comments for a better understanding .
Hope you found this blog informative and useful. please clap🎉 if you like this blog and follow me to get more useful knowledge. Thank you!😊