Delete Element at Flattened Index From Sorted Intervals
Asked at Databricks · Coding Questions · Difficulty: Medium · Last asked Apr 18, 2026
You are given a list of **sorted, inclusive** integer intervals. Imagine writing down every integer covered by these intervals, in order, as one long flattened list. Given a 0-based position in that list, remove the number found there and return the intervals that describe what remains. Removing a number can shrink an interval, delete it, or split it in two.
Loading the problem…