# How To Prepare For A Coding Job Interview

Landing a job in the tech field can be difficult, especially if you shooting for jobs at major companies like Facebook or Google.  In fact, if you are applying to Facebook, you will be put through a series of targeted coding questions on the spot.  So whereas some companies may give you a coding test that you … Continue reading How To Prepare For A Coding Job Interview

# The Einstein puzzle

Question: Answer the question using the given information and hints. In a street, there are five houses, painted five different colors. In each house lives a person of different nationality These five homeowners each drink a different kind of beverage, smoke different brand of cigar and keep a different pet. The Question: Who owns the … Continue reading The Einstein puzzle

# Lumos

Question: A photon starts moving in the random direction from the center of the square of size 3. Let’s say it first colloids to the glass wall AB. What is the expected distance traveled by the photon before hitting the wall AB again? . . C A P T A I N I N T … Continue reading Lumos

# The Red wedding

Question: A bad king has a cellar of 1000 bottles of delightful and very expensive wine. A neighbor queen plots to kill the bad king and send a servant to poison the wine. Fortunately (or say, unfortunately) the bad king’s guards catch the servant after he could poison only one bottle. Alas, the guards don’t know which … Continue reading  The Red wedding

# Misogynist country

Question: In a country in which people only want boys, every family continues to have children until they have a boy. If they have a girl, they have another child. If they have a boy, they stop. What is the proportion of boys to girls in the country? . . C A P T A … Continue reading  Misogynist country

# More prisoners and more hats

Question: There are 7 prisoners sitting in a circle. The warden has caps of 7 different colors (an infinite supply of each color). The warden places a cap on each prisoner’s head – he can choose to place any cap on any other’s head. Each prisoner can see all caps but her/his own. The warden … Continue reading More prisoners and more hats