New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Databricks
Coding Question
AI Insights
Quick Summary
Flatten a list of half-open intervals into a sequential list of integers and remove one element by index.
Reconstruct the remaining points back into a valid interval list while maintaining the original order.
Handle cases where removal splits, shrinks, or completely eliminates an interval.
What This Tests
Index mapping across aggregated ranges
Interval boundary manipulation
Linear array traversal and reconstruction
Edge case analysis in range operations
Common Patterns
Prefix Sum
Greedy
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected