Interview Question: Matching Gloves

Sample Question #274 (brainteaser)
 
Last time you searched in the dark for a matching pair of socks. This time you search in the dark for a matching pair of gloves in a drawer that has 2 pairs of white gloves and 2 pairs of brown ones. As with your socks, you always buy gloves of the same style. So, how many gloves do you need to take out in order to find a matching pair?
Advertisements
This entry was posted in Sample Qs. Bookmark the permalink.

2 Responses to Interview Question: Matching Gloves

  1. Brett says:

    ANSWER
     
    The situation is different from that of the socks since gloves come in lefts and rights, whereas socks usually don’t. So you need to draw 5 socks in order to get one matching pair. (In other words, you have four pigeonholes — white, brown, left, right — so you need 5 "pigeons" to have one hole with two "pigeons.")

  2. Feng says:

    I think it should be 5 "gloves" in the answer:)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s