Minimum Cost to Balance a Circular Array of Warehouses
Given a circular array of 5 warehouses each containing a number of products, distribute the products evenly across all warehouses while minimizing the total cost of movement. The cost is defined as the distance traveled (clockwise or counter-clockwise) to move goods from one warehouse to another.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Early August, 2026
The question gave a circular array that represented 5 warehouses. Each warehouses had a give number of products. The goal was to distribute goods evenly across all the warehouses, while minimizing the cost to move the goods. Cost is the distance from the giving warehouse to the receiving warehouse. You may only move clockwise or counter-clockwise.
Hello Interview Premium
Your account is free and you can post anonymously if you choose.