Why did the doughnut shop close?
The owner got tired of the (w)hole business!interviewlogic
You have 3 jars that are all mislabeled. One jar contains Apple, another contains Oranges and the third jar contains a mixture of both Apple and Oranges.
You are allowed to pick as many fruits as you want from each jar to fix the labels on the jars. What is the minimum number of fruits that you have to pick and from which jars to correctly label them?
Let’s take a scenario. Suppose you pick from jar labelled as Apple and Oranges and you got Apple from it. That means that jar should be Apple as it is incorrectly labelled. So it has to be Apple jar.
Now the jar labelled Oranges has to be Mixed as it cannot be the Oranges jar as they are wrongly labelled and the jar labelled Apple has to be Oranges.
Similar scenario applies if it’s a Oranges taken out from the jar labelled as Apple and Oranges. So you need to pick just one fruit from the jar labelled as Apple and Oranges to correctly label the jars.logic
You are a prisoner sentenced to death. The Emperor offers you a chance to live by playing a simple game. He gives you 50 black marbles, 50 white marbles and 2 empty bowls. He then says, "Divide these 100 marbles into these 2 bowls. You can divide them any way you like as long as you use all the marbles. Then I will blindfold you and mix the bowls around. You then can choose one bowl and remove ONE marble. If the marble is WHITE you will live, but if the marble is BLACK... you will die." How do you divide the marbles up so that you have the greatest probability of choosing a WHITE marble?
HINT: The answer does not guarantee 100% you will chose a white marble, but you have a much better chance.
Place 1 white marble in the bowl, and place the rest of the marbles in the other bowl (49 whites, and 50 blacks). This way you begin a 50/50 chance of choosing the bowl with just one white marble, therefore life! BUT even if you choose the other bowl, you still have almost a 50/50 chance at picking one of the 49 white marbles.shortwhat am I
I’m tall when I’m young, I’m short when I’m old, and every Halloween I stand up inside Jack O Lanterns. What am I?
What has five eyes, but cannot see?
The Mississippi River.