Implement a Half-Open Interval Range Module

Quick Overview

Implement a range module over half-open intervals with add, remove, and full-coverage query operations. Handle merging adjacent ranges, splitting tracked ranges, large coordinates, and up to 20,000 mixed operations while returning query results in order.

Implement a Half-Open Interval Range Module

Company: Amazon

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: hard

Interview Round: Technical Screen

Overview: Implement a range module over half-open intervals with add, remove, and full-coverage query operations. Handle merging adjacent ranges, splitting tracked ranges, large coordinates, and up to 20,000 mixed operations while returning query results in order.

|Home/Coding & Algorithms/Amazon
Amazon logo
Amazon
Jul 5, 2026
hardSoftware EngineerTechnical ScreenCoding & Algorithms
6
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...