You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a function interval_insert which takes as input a list myl of disjoint closed intervals with integer endpoints, sorted by increasing order of left endpoint, and an interval interval, and returns the union of interval with the intervals in myl, expressed as a union of disjoint intervals.