The Wayback Machine - https://web.archive.org/web/20241001095653/https://www.geeksforgeeks.org/puzzle-12-maximize-probability-of-white-ball/
Open In App

Puzzle 12 | (Maximize probability of White Ball)

Last Updated : 19 Jan, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

There are two empty bowls in a room. You have 50 white balls and 50 black balls. After you place the balls in the bowls, a random ball will be picked from a random bowl. Distribute the balls (all of them) into the bowls to maximize the chance of picking a white ball. 

  
  
  

Explanation: 
First, let us assume that we divided the balls into jars equally so each jar will contain 50 balls. 
So the probability of selecting a white ball will be = probability of selecting the first jar*probability of white ball in the first jar + probability of selecting the second jar*probability of white ball in the second jar 
=(1/2)*(25/50)+(1/2)*(25/50)=0.5
Since we have to maximize the probability so we will increase the probability of white ball in the first jar and keep the second probability same mean equal to 1 
so we add 49 white balls with 50 black balls in the first jar and only one white ball in the second jar 
so the probability will be now= 
 

(1/2)*(49/99)+(1/2)*(1/1)=0.747

Therefore, probability of getting white ball becomes 1/2*1 + 1/2*49/99 which is approximately 3/4. 

 
 

 


Previous Article
Next Article

Similar Reads

Puzzle 63 | Paper ball and three friends
It's summer time and three of the college friends, A, B and C went to sports club to enjoy the vacation. They saw an interesting game being played there. Game name is "hit and win". There was a triangular setup of green ropes on ground. You have to move on the triangular path and on the turn you have to hit other mate using paper ball until only on
2 min read
Puzzle | Weight of Heavy Ball
Puzzle: There are 2187 balls, out of which 1 is heavy. Find the minimum number of attempts the balls have to be weighed for finding out the heavy ball. Solution: The minimum amount of measurements needed to be done will be equal to 7 times. 2187 = 3^7 Step 1: Divide the 2187 balls into 3 equal groups of 729 each, let's say C1, C2 and C3. Put C1 on
4 min read
Puzzle | Find the last ball to remain after the entire process
Problem Statement: You have 20 Red and 16 Blue balls in a bag. You pull out 2 balls one after another. If the balls are of the same color, then you replace them with a Blue ball – but if they are of different color, you replace them with a Red ball. Once you take out the balls, you do not put them back in the bag – so the balls keep reducing. What
3 min read
Designing algorithm to solve Ball Sort Puzzle
In Ball Sort Puzzle game, we have p balls of each colour and n different colours, for a total of p×n balls, arranged in n stacks. In addition, we have 2 empty stacks. A maximum of p balls can be in any stack at a given time. The goal of the game is to sort the balls by colour in each of the n stacks. Rules: Only the top ball of each stack can be mo
15+ min read
Puzzle | Black and White Balls
You have 20 white and 13 black balls in a bag. You pull out 2 balls one after another. If the balls are of same color, then you replace them with a white ball – but if they are of different color, you replace them with a black ball. Once you take out the balls, you do not put them back in the bag – so the balls keep reducing. What would be the colo
1 min read
Puzzle | Find The Probability of Distance in a Square
Given 6 point inside a square of side 10cm, what is the probability that there exist at least two points whose distance is less than 8cm? Asked In: FICO Answer: 1 Explanation: The logic of the solution is that if you draw 6 points inside a square of 10 cm then it's sure that there are at least two points within 8cm. Imagine if you draw four points
1 min read
Puzzle | Probability of finding a job
Puzzle: There is a interview going on and Ram is selected for interview to 3 posts. The total number of candidates appearing for the first, second and the third posts are 3, 4 and 2 respectively. Find the probability of Ram getting at least one job. Assume that the probabilities are independent of each other. Answer: 3/4 Solution: Since we need to
1 min read
Puzzle - If one child is a boy, what is the probability the other is a boy?
Question: A woman has two kids. There is one boy. What are the odds that the other child is a boy as well? How does this change if you are told the oldest child is a boy? Solution: We will divide the question into two parts and then solve: i) A woman has two kids. There is one boy. What are the odds that the other child is a boy as well? Answer: Th
2 min read
Puzzle - Probability of Seeing a Car in 10 Minutes & 30 Minutes
Question: In thirty minutes on a deserted road, there is a 95% chance of seeing a vehicle. What are the probabilities of seeing a vehicle in ten minutes? Solution: To make the question more understandable, we can state that the probability of seeing any other vehicle in the next 30 minutes is 95%, or, more precisely and practically, the probability
2 min read
Puzzle - Probability of 4 points in a sphere
take four arbitrary points on a sphere as the vertices of a tetrahedron. What is the probability that the centre of the sphere will be located within the tetrahedron?Reference: https://www.physicsforums.com/threads/probability-4-arbitrary-points-on-a-sphere.934671/ Consider four arbitrary points on a sphere, as the vertices of a tetrahedron. What i
2 min read
Puzzle | Probability of a Truck Passing
The probability of a truck passing a certain intersection in a 20 minute windows is 0.9. What is the probability of a truck passing the intersection in a 5 minute window? (Assuming a constant probability throughout) Asked in : Google Solution Let p be the probability of a truck passing the intersection in a 5 minute window. Probability of a truck p
1 min read
Puzzle | Man fell in well Puzzle
A man fell in a 50m deep well. He climbs 4 meters up and slips 3 meters down in one day. How many days would it take for him to come out of the well? Answer: 47days Explanation: On the first day, the man climbs 4 meters up and slips 3 meters down, therefore he only climbs 1 meter up totally.On the second day, again he climbs 1 meter up, so the tota
1 min read
Puzzle - A LITTLE TRAIN PUZZLE
A nonstop express going sixty miles an hour starts from Bustletown for Ironchester, and another nonstop express going forty miles an hour starts at the same time from Ironchester for Bustletown. How far apart are they exactly an hour before they meet?Because the two stations cannot be found on any map or gazetteer, we cannot state the distance betw
1 min read
Puzzle | The Einstein's Puzzle
Einstein's puzzle is a famous logic puzzle that was supposedly created by Albert Einstein as a boy. The puzzle goes as follows:There are five houses in a row, each with a different color. In each house lives a person of a different nationality. The five owners drink a certain type of beverage, smoke a certain brand of cigar, and keep a certain pet.
4 min read
Puzzle 15 | (Camel and Banana Puzzle)
A person has 3000 bananas and a camel. The person wants to transport the maximum number of bananas to a destination which is 1000 KMs away, using only the camel as a mode of transportation. The camel cannot carry more than 1000 bananas at a time and eats a banana every km it travels. What is the maximum number of bananas that can be transferred to
4 min read
Puzzle 24 | (10 Coins Puzzle)
You are blindfolded and 10 coins are placed in front of you on the table. You are allowed to touch the coins but can’t tell which way up they are by feel. You are told that there are 5 coins head up, and 5 coins tails up but not which ones are which. Can you make two piles of coins each with the same number of heads up? You can flip the coins any n
1 min read
Puzzle 27 | (Hourglasses Puzzle)
Puzzle: Given two hourglass of 4 minutes and 7 minutes, the task is to measure 9 minutes. Solution: At 0 minutes: Start both hourglasses at the same time. At 4 minutes: 4 minutes hourglass runs out and flip it. 7 minutes hourglass is left with 3 minutes. At 7 minutes: 4 minutes hourglass is left with 1 minute. 7 minutes hourglass runs out and flip
1 min read
Puzzle 28 | (Newspaper Puzzle)
Question: A newspaper made of 16 large sheets of paper folded in half. The newspaper has 64 pages altogether. The first sheet contains pages 1, 2, 63, 64. If we pick up a sheet containing page number 45. What are the other pages that this sheet contains? Answer: On the back of 45, it is 46. The pages are such that for each page p, 65-p will be also
1 min read
Puzzle 31 | (Minimum cut Puzzle)
Puzzle: You have got someone working for you for five days and a gold bar to pay him. You must give them a piece of gold at the end of every day. What are the fewest number of cuts to the bar of gold that will allow you to pay him 1/5th each day? Answer: 2 cuts. Solution: Explanation 1: After two cut there are three pieces of [1 unit and two 2 unit
2 min read
Puzzle 33 | ( Rs 500 Note Puzzle )
A Lady (L) bought an item of Rs 100 from the Shopkeeper (C). She paid him through a 500 Rs Note. Realizing that he did not have change, the shopkeeper C got change for that note from another shopkeeper (S) and paid Rs 400 to the Lady. After a few days, S realized that the note is fake, And this railed at C and took 500 Rs back from him. So in this
1 min read
Puzzle 36 | (Matchstick Puzzle)
Question: How to make 4 equilateral triangles with 6 identical match sticks? Method - I: Make a tetrahedron. Method-II: Method - III: Make one equilateral triangle by three sticks . then put each remaining stick on straight line passing through middle points of each two arms of triangle. Method IV: https://youtu.be/DqLOC85SVHQ
1 min read
Puzzle 38 | (Tic Tac Toe Puzzle)
Statement: The game of Tic-Tac-Toe is being played between two players and it is in below state after six moves. Can you answer following questions? Who will win the game, O or X? Which was the sixth mark and at which position? Assume that both the players are intelligent enough. Solution: O will win the game. The sixth mark was X in square 9. Expl
1 min read
Puzzle 39 | (100 coins puzzle)
This puzzle is similar to 10 Coins Puzzle. Question: 100 coins are lying flat on a table. 10 of them are heads up and 90 are tails up.You can't see which one is which.How can we split the coins into two piles such that there are same number of heads up in each pile? Note: It is allowed to flip the coins of one pile once. Answer: Make 2 piles with 1
1 min read
Puzzle 51| Cheryl’s Birthday Puzzle and Solution
(Wiki) Cheryl's Birthday is the unofficial name given to a mathematics brain teaser that was asked in the Singapore and Asian Schools Math Olympiad, and was posted online on 10 April 2015 by Singapore TV presenter. It is an interesting problem and might be asked in the interviews. It is based on logical deduction. It doesn’t require any prior mathe
3 min read
Puzzle 85 | Chain Link Puzzle
You have five pieces of chain, each consisting of three links. You want to make one long chain of these five pieces. Breaking open a link costs 1 Rs, and welding an open link costs 3 Rs. Is it possible to make one long chain of the five pieces, if you have just 15 Rs? Solution: Let us name the chains as 1, 2, 3, 4, 5 each having three links. Take c
1 min read
Puzzle | 3 Priests and 3 devils Puzzle
There are 3 devils and 3 Priests.They all have to cross a river in a boat.Boat can only carry two people at a time.As long as there are equal number of devils and priests,then devils will not eat Priest.If the number of devils are greater than the number of priests on the same side of the river then devils will eat the priests.So how can we make al
2 min read
Puzzle - "Rocky and Sam's Avian Puzzle: A Feathery Conundrum"
In a little town called Puzzleville, where puzzles and brain teasers made every day exciting, two friends, Rocky and Sam, got caught up in a tricky puzzle about flying birds. Sam, being curious, asked Rocky a question that led them on an adventure to solve the mystery of the birds in the sky. The Puzzle"Rocky," Sam began, his eyes sparkling with ex
2 min read
Puzzle 29 | (Car Wheel Puzzle)
Puzzle: A car has 4 tyres and 1 spare tyre. Each tyre can travel a maximum distance of 20000 km before wearing off. What is the maximum distance the car can travel before you are forced to buy a new tyre? You are allowed to change tyres (using the spare tyre) an unlimited number of times.   Answer: 25000 kmsSolution: Divide the lifetime of the spar
6 min read
Puzzle 81 | 100 people in a circle with gun puzzle
100 people standing in a circle in an order 1 to 100. No. 1 has a sword. He kills the next person (i.e. No. 2) and gives the sword to the next (i.e. No. 3). All people do the same until only 1 survives. Which number survives at the last? There are 100 people starting from 1 to 100. Solution: 73rd person will survive at last Explanation 1 (intuitive
8 min read
Puzzle 34 | (Prisoner and Policeman Puzzle)
Policeman decided to punish the Prisoner and asked him to make a statement. The Prisoner should make such a statement so that he would be alive. If the statement is held true by Policeman, the Prisoner will be hanged to death and if the statement is held false, the Prisoner will be shot dead. Answer: The Prisoner said, 'I will be shot dead'. If the
1 min read
Practice Tags :