Design a way to give a prize to the requester of the billionth request? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 32

Design a way to give a prize to the requester of the billionth request?

Friends i came across this question and believe it to be interview question, but have no idea in this. Please share if you have one "In a system where millions of users are issuing requests at the same time (e.g. a search engine), design a way to give a prize to the requester of the billionth request?"

16th Mar 2017, 2:59 PM
Ram chandra Giri
Ram chandra Giri - avatar
3 Answers
+ 4
You know, for computers, in their innermost core, there is no such concept as "at the same time"... Each request gets its own unique id and you just start counting from one to one billion :)
30th Mar 2017, 8:30 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 27
Question says design, not make a program. So if you know just give idea, how to tackle this. @Yadumeet
16th Mar 2017, 3:21 PM
Ram chandra Giri
Ram chandra Giri - avatar
+ 2
Well, should we make a program and show you
16th Mar 2017, 3:17 PM
Yadumeet Singh
Yadumeet Singh - avatar