Find the Number of Balanced Subsegments
Find the number of balanced subsegments in a row of servers. A balanced subsegment is a contiguous segment of 3 or more servers where the capacity of the servers at the endpoints equals the sum of the capacities of all interior servers.
Asked at:
Amazon
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Early December, 2024
Amazon
Mid-level
Find the number of balanced subsegments in a row of servers. A balanced subsegment is a contiguous segment of 3 or more servers where the capacity of the servers at the endpoints equals the sum of the capacities of all interior servers.
Hello Interview Premium
Your account is free and you can post anonymously if you choose.