Bucket Values Into Boundary Ranges
Asked at Bloomberg · Coding & Leetcode-style Questions · Difficulty: Medium
Given a sorted boundary array `boundaries` (length `m`) and an array `arr`, bucket each value in `arr` into the interval formed by adjacent boundaries.
Loading the problem…
More Bloomberg interview questions
- Streaming Social-Media Mentions and Aggregation
- Real-time Market Data Distribution System
- Trade Processor with Subscribe / Unsubscribe
- Flatten a Multilevel Doubly Linked List
- Matchsticks to Square Transform
- Train a Next-Word Predictor from Tokenized Sentences