Android Software Engineer Interview Questions

598 android software engineer 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.5
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 451 - 460 interview questions

Glassdoor has 598 interview questions and reports from Android software engineer interviews. Prepare for your interview. Get hired. Love your job.