Puzzle | Pair of Socks
There are 10 black socks and 10 white socks in a drawer. Socks of the same color are identical but not allowed to look into the drawer while taking out socks.
So, the task is to find the minimum number of socks to be drawn at random to be sure that he/she gets the pair of socks of the same color?
Answer: 3
Explanation:
Case 1: Same sock color come out in 1st and 2nd attempt-
1st- Black
2nd- BlackOR
1st- White
2nd- White
Number of removals = 2
Case 2: Different color of socks come out in first and second attempt-
1st- Black
2nd- White
OR
1st- White
2nd- Black
In the third attempt, a black or a white sock come out, either way, a pair is completed.
So, the number of removals = 3
Recommended Posts:
- Puzzle 1 | (How to Measure 45 minutes using two identical wires?)
- Puzzle 2 | (Find ages of daughters)
- Puzzle 3 | (Calculate total distance travelled by bee)
- Puzzle 4 | (Pay an employee using a 7 units gold rod?)
- Puzzle 13 | (100 Prisoners with Red/Black Hats)
- Puzzle 5 | (Finding the poisoned wine)
- Puzzle 6 | (Monty Hall problem)
- Puzzle 7 | (3 Bulbs and 3 Switches)
- Puzzle 8 | (Find the Jar with contaminated pills)
- Puzzle 9 | (Find the fastest 3 horses)
- Puzzle 10 | (A Man with Medical Condition and 2 Pills)
- Puzzle 11 | (1000 Coins and 10 Bags)
- Puzzle 12 | (Maximize probability of White Ball)
- Puzzle 14 | (Strategy for a 2 Player Coin Game)
- Puzzle 15 | (Camel and Banana Puzzle)
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



