Developer Interview Questions

269,301 developer interview questions shared by candidates

Spaghetti in a bowl question. (Pick up one end of a spaghetti and you can either join it to the other end of the spaghetti you are holding which created a loop or you can pick any other end in the bowl and join it to that. Find the expected number of loops.) Another spaghetti question (I think the interviewer loved spaghetti): You have a plate of spaghetti in front of you (no sauce!). You pick two ends and tie them together. Then you pick two more ends and tie them together. Continue until there are no free ends left. If there were n spaghettis originally, what is the probability that you now have a single giant loop consisting of all the spaghettis?
avatar

Algorithm Developer

Interviewed at Hudson River Trading

4.2
Oct 23, 2016

Spaghetti in a bowl question. (Pick up one end of a spaghetti and you can either join it to the other end of the spaghetti you are holding which created a loop or you can pick any other end in the bowl and join it to that. Find the expected number of loops.) Another spaghetti question (I think the interviewer loved spaghetti): You have a plate of spaghetti in front of you (no sauce!). You pick two ends and tie them together. Then you pick two more ends and tie them together. Continue until there are no free ends left. If there were n spaghettis originally, what is the probability that you now have a single giant loop consisting of all the spaghettis?

Choose a person randomly on the street, X. Let N denote the random variable representing the number of people that you select randomly from the street before you find someone who's taller than X. What is E[N]?
avatar

Trading Algo Developer

Interviewed at Hudson River Trading

4.2
Jan 28, 2021

Choose a person randomly on the street, X. Let N denote the random variable representing the number of people that you select randomly from the street before you find someone who's taller than X. What is E[N]?

Viewing 1681 - 1690 interview questions

Glassdoor has 269,301 interview questions and reports from Developer interviews. Prepare for your interview. Get hired. Love your job.