Merge Overlapping Intervals (InterviewBit)

--

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!😊

--

--

Sibani Krishna Choudhury
Sibani Krishna Choudhury

Written by Sibani Krishna Choudhury

Hey guys !! I am currently working as a software engineer. I love programming and Technology. also Love to smile always😊😁

No responses yet