Tag: interval
Merge Intervals - A faster approach
Date: 3/1/2024Tags:algorithmsleetcodeintervalThe journal entry explores an optimized approach derived from the fastest LeetCode solution, detailing how it efficiently merges intervals by adjusting start and end values based on overlap conditions and pushing valid intervals to a result list; this method is exemplified by a provided code snippet for merging intervals.
Merge Intervals
Date: 2/29/2024Tags:algorithmsleetcodeintervalThe journal entry details a solution for the Merge Intervals problem using a two-pointer approach to efficiently merge overlapping intervals in an array.
Insert Interval
Date: 2/16/2024Tags:algorithmsleetcodeintervalbinary_searchThe journal entry titled "Insert Interval" describes a solution that uses binary search to find the index of the interval preceding a new interval, adds intervals from the beginning to that point to a result array, merges overlapping intervals, and pushes the new interval to the result array; it includes coding implementation.