An ID allocator manages the inclusive integer ID space from 0 through 999. Each allocated range belongs to a named bucket, and allocations never overlap.
You are given bucketRanges, an array whose entries have the form [bucketName, startId, endId]. startId and endId are inclusive decimal strings. Entries may be unsorted, and a bucket may own multiple ranges.
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
Output
Expected