H-E-B Interview Question:
Download Questions PDF

If you have seven white socks and nine black socks in a drawer, how many socks do you have to pull out blindly in order to ensure that you have a matching pair?

H-E-B Job Interview Question
H-E-B Interview Question

Answer:

if the first one is one color (say, white), and the second one is the other color (black), then the third one, no matter what the color, will make a matching pair. (Sometimes you're not supposed to think that hard.)

Download H-E-B Interview Questions And Answers PDF

Previous QuestionNext Question
Did you get on well with your last manager?Suppose there are three light switches outside a room. Inside is a single light bulb, controlled by one of the three switches. You need to determine which switch operates the bulb. You can turn the switches on and off as many times as you wish (they are all off to begin with), but may only enter the room once. There is no one there to help you. The door to the room is closed, and there are no windows, so you cannot see inside. How can you discover which switch operates the bulb?