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- Black

OR

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



My Personal Notes arrow_drop_up

Student at Netaji Subhas Institute of Technology

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.




Article Tags :
Practice Tags :


1


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.