DevOps / SRE Engineer signal: greedy proof + sorting in a on-call routing context. This is a ProdMatch-owned devops sre drill, framed as a March 2026 Groww Incident Response simulation, not a copied platform question.
Company context
Groww · Incident Response
Freshness
March 2026
Product surface
on-call routing
ProdMatch interview simulation based on product-team patterns; not a claim of a real company question.
Rebalance pages across shards for on-call routing. Each move has a cost equal to distance between shards. Compute minimum cost to make shard loads differ by at most one.
Input
Output
Constraints
Concepts
loads [0,3,0] -> move one unit left and one right, cost=2
Try framing your own approach first. The 30 seconds you think before peeking is where learning happens.
Reveal the approach first.
Your rating tunes when this problem shows up again.