Android Developer Intern Interview Questions

8,372 android developer intern 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 6401 - 6410 interview questions

Glassdoor has 8,372 interview questions and reports from Android developer intern interviews. Prepare for your interview. Get hired. Love your job.