Shard Rebalancing
Examples
Example 1:
Input: limit = 2, shards = ["A:0:100", "B:40:110", "C:80:200", "D:210:300"]
Output: ["A:0:100", "B:40:110", "C:101:209", "D:210:300"]
Explanation:
Example 2:
Input: limit = 1, shards = ["A:0:100", "B:80:180"]
Output: ["A:0:100", "B:101:180"]
Example 3:
Input: limit = 2, shards = ["A:0:30", "B:0:31", "C:0:32", "D:0:100"]
Output: ["A:0:30", "B:0:31", "C:31:32", "D:32:100"]
Explanation: