OpenAI logoOpenAI
Coding·60 minMembers

Shard Rebalance / Overlapping Key Range

Members only

Given a set of shards (each with id/start/end key range), support `add_shard / remove_shard` and implement `rebalance()` so that no more than `limit` shards overlap at any point. Trim excess, fill gap...

SWE
algorithm
interval
simulation
medium
Frequency
Medium
Last asked
2026-06-26
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...