Leetcode, Interval, Interview Questions, Google, Meta.
degrees and end degrees for each tree and merge them to form the sorted events. Then we maintain a sliding window of size 90 degrees over the sorted events. If we encounter a new start event at the right end of the sliding window, then we increment the number of trees by 1, and if we are removing