Payout Partner Load Balancer
Given a payout routing configuration that maps country/currency pairs to a list of partners with availability flags, implement a load balancer that selects the most suitable partner to evenly distribute load. Extend the solution to support custom per-partner ratios, minimizing the absolute ratio difference across all available partners with each placement.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late November, 2026
It is a multi-part question. Given a payout routing provided as a country/currency mapping to a list of partners. Given the country/currency and availability flags, return the most suitable partner to keep the load balanced across all available partners. For the second part, a custom ratio will be provided per partner and we should modify the code to minimize the absolute ratio difference across all partners with every placement.
Hello Interview Premium
Your account is free and you can post anonymously if you choose.