4 balls in a bag: 2 reds, 2 blacks. Randomly pick 2 balls, paint the second ball to color of the first ball. Find the expected number of times until all the balls have the same color.
Algorithm Developer Interview Questions
1,073 algorithm developer interview questions shared by candidates
what kind of researches you've ever involved in
a^2+b^2 = c^2, a+b+c = 40, and a,b,c are positive integers. What are a,b,and c?
We draw a person at random from the street. Then we keep drawing people until we find someone taller than the first person. What is the expected number of draws we have to wait?
If I have a jar with 1000 coins and one is double headed and I pick one coin randomly and flip 10 heads what is the probability it is the double headed coin?
You have three sock drawers. One has red and blue socks, one has blue and green socks, and one has green and red socks. What is the expected number of socks you must pull to be sure which drawer is which, assuming that the number of socks of each color in each drawer is both large and equal?
Pretty much the same thing as the Microsoft one in this link. I wasted too much time on question 2 and didn't get a chance to submit an answer but I finished it for fun after the test. https://webcache.googleusercontent.com/search?q=cache:KocTw550s_UJ:https://leetcode.com/discuss/interview-question/760379/Microsoft-or-OA-2020-or-Word-Machine+&cd=1&hl=en&ct=clnk&gl=ru&client=safari
A stick randomly breaks into 3 pieces, what is the possibility that it forms a triangle
X,Y ~ Phi(0,1) (normal distribution). What is the probability that X > 5*Y
Asked how to find the kth largest element of a sequence of n elements.
Viewing 1 - 10 interview questions