Facebook Interview Question for SDE-3s
- 0of 0 votes
Design and implement an algorithm to assign an unlimited M number of messages evenly among N number of servers (N will not change).- aifra2000 May 20, 2017 in United States
Input to the algorithm
A message contains a message identifier and a text string. The algorithm will be fed one message at a time.
There are N numbers of servers (N will not change), each can be identified by a unique id.
Output of the algorithm
When the algorithm is called to process a message, it should output the id of the server that the message is assigned to.
| Report Duplicate | Flag | PURGE
Interview Type: In-Person
Open Chat in New Window