Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Puzzle | Pair of Socks

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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
Last Updated : 18 Jan, 2023
Like Article
Save Article
Similar Reads