Junior Android Developer Interview Questions

10,452 junior android developer interview questions shared by candidates

There is a stream of incoming tweets, and you have a computer with only enough memory to hold one tweet. How do you return a random tweet, where each tweet has a 1/n chance of being returned? For example, if 5 tweets have come in, then there should be a 1/5 chance of returning any one of those 5 tweets.
avatar

Android Software Engineer Intern

Interviewed at StubHub

2.4
Nov 24, 2014

There is a stream of incoming tweets, and you have a computer with only enough memory to hold one tweet. How do you return a random tweet, where each tweet has a 1/n chance of being returned? For example, if 5 tweets have come in, then there should be a 1/5 chance of returning any one of those 5 tweets.

Viewing 7981 - 7990 interview questions

Glassdoor has 10,452 interview questions and reports from Junior android developer interviews. Prepare for your interview. Get hired. Love your job.