Ymra
New Member
Don't google or look for the answer on the web as I couldn't at my interview.
Most of the interview was on computer stuff. What is cloud computing or risc and cisc?
Here were the two logic questions I got.
#1
You have a 100 story building and two eggs. These are
especially strong eggs. There is some floor below which
the egg will not break if dropped. How many drops will it take before you find lowest floor that the egg will break?
#2
You are in a room with three switches that each control a different light fixture in another room. You cannot see from the switch room into the lamp room. Your task is to determine which switches control which light fixtures, but you may only go into the room with the lights once. How do you determine which switch controls which light?
This was the first time I had an interview like this.
You go to the 14th floor and drop an egg.
If it breaks you have 13 more drops to test floors 1 to 13.
If it doesn't break you go to the 27th (14 + 13) and drop
the first egg again. If it breaks you have 12 drops left
to test the 12 floors above 14 and below 27. You continue
up the building until you reach the 99th floor
(14+13+12+11+10+9+8+7+6+5+4) with three drops left. If it
breaks you have three drops left to test the three floors
between the 95th floor and the 99th floor.
Flip two switches to the on position and wait a few minutes. Then turn one of those switches off and go directly to the room with the lights. The light that is on is obviously connected to the switch that you left in the on position. The other two lights are off, however the one that you turned on for a while will still be warm and the one that you never turned on will be cool.