Amazon Interview Question
Software Engineer / DevelopersIf the order ids are random integer, then it's likely at a particular time some of the service s_i may have no order to process, whereas some service s_j has more than 1 orders to process. So this is some balancing issue. A simple approach could be counting each services status dynamically. The given static approach takes O(1) time for assignment with balancing problem, dynamic approach would take O(n) time which may alleviate this problem.
Any useful link/tutorial for load balancing issues? Wiki entry doesn't have much details.
Can you clarify the problem?
- Anonymous June 28, 2010