There are a number of books on a shelf. If one book is the 6th from the left and 4th from the right, how many books are on the shelf?
Answer:- There are 9 books on the shelf.
There are n coins in a line. (Assume n is even). Two players take turns to take a coin from one of the ends of the line until there are no more coins left. The player with the larger amount of money wins.
Would you rather go first or second? Does it matter?
Assume that you go first, describe an algorithm to compute the maximum amount of money you can win.
Note that the strategy to pick maximum of two corners may not work. In the following example, first player looses the game when he/she uses strategy to pick maximum of two corners.
Example 18 20 15 30 10 14
First Player picks 18, now row of coins is
20 15 30 10 14
Second player picks 20, now row of coins is
15 30 10 14
First Player picks 15, now row of coins is
30 10 14
Second player picks 30, now row of coins is
10 14
First Player picks 14, now row of coins is
10
Second player picks 10, game over.
The total value collected by second player is more (20 + 30 + 10) compared to first player (18 + 15 + 14). So the second player wins.
Answer:- The contents or the ten envelopes (in dollar bills) hould be as follows: $1, 2, 4, 8, 16, 32, 64, 128, 256, 489. The first nine numbers are in geometrical progression, and their sum, deducted from 1,000, gives the contents of the tenth envelope.
There is a big Indian and a little Indian. The little Indian is the big Indians son but the big Indian is not the little Indians father. What is the big Indian?
Answer:- A mother.
There is a box full of marbles,
all but two are blue,
all but two are green,
and all but two are red.
How many marbles are in the box?
Answer:- Just one.
There is a small town in the midwest with exactly 2 barbershops, one on each side of town. The barbershop on the west side of town is pristine. Its floors are spotless, the windows are always perfectly clear, and the air always smells fresh. The barber has a friendly smile, shined shoes, a well-groomed head of hair, and a fancy shirt. The barbershop on the east side of town is a mess. Its floors and windows are dirty, and the air smells of garbage. The barber always has a grimace on his face. His skin is oily, his hair is short and ragged, and he has food on his clothes all the time.
A man travelling through the town realizes he needs a haircut. Knowing the stories of the two barbers, the man decides to go to the dirty barbershop on the east side of town.
Why does he do this?
Answer:- Because there are only two barbers in the town, the barbers must cut each-other's hair. The barber on the west side of town has a nice haircut, so the east-side barber must be a good barber. On the other hand, the barber on the east side of town has ragged hair, meaning the west-side barber must not be very good. So the man goes to the east-side barber to get a better haircut.
There was a railroad crossing without any cars and trucks! Can you spell that without using any "R"?
Answer:- T-H-A-T
This guy living on the 20th floor in an apartment building got up early each morning to go to work in a downtown store. He always went into the elevator on the 20th floor and rode down to the entrance (1st floor). When he came home he always rode the elevator from the entrance and up to the 8th floor. He walked out of the elevator and walked the stairs up to his apartment on the 20th floor. Why didn't he take the elevator all the way up to his apartment?
Answer:- This guy is midget and can only reach to the 8th floor button.
This is an unusual paragraph. I’m curious as to just how quickly you can find out what is so unusual about it. It looks so ordinary and plain that you would think nothing was wrong with it. In fact, nothing is wrong with it! It is highly unusual though. Study it and think about it, but you still may not find anything odd. But if you work at it a bit, you might find out. Try to do so without any coaching.
Answer:- The letter "e", which is the most common letter in the English language, does not appear once in the long paragraph.
Two men ride their horses to the town blacksmith to ask for his daughter's hand in marriage. To help decide who will get to marry her, the blacksmith proposes a very strange race:
"You will race your horses down the mile-long road from here to the center of town, and the man whose horse passes through city hall's gates LAST will get to marry my daughter."
The men have no idea how to proceed, but after a few minutes of thinking, they come up with a great idea to abide by the blacksmith's rules. 30 minutes later, one of the men is gloating, having won the daughter's hand in marriage.
What was the idea the men had?
Answer:- Each man rides the other man's horse. They race as they normally would. The blacksmith said the man whose horse crosses last would win, so the man who wins the race would have his horse finish last.
Two sisters we are, one is dark and one is fair,
In twin towers dwelling we're quite the pair,
One from land and one from sea,
Tell us truly, who are we?
Answer:- The answer is salt and pepper.
Two soldiers, William and Ethan, are assigned to guard a bridge, which connects the West and East sides of the Great Kingdom. Each soldier is ordered to stand at an end of the bridge to make sure no criminals cross.
On one side of the bridge stands William, watching over the West side of the kingdom, and making sure no shady characters try to cross the bridge.
Ethan stands on the other side of the bridge, facing the East side of the kingdom with his rifle at the ready in case any criminals try to pass across.
"Any criminals today?" William asks.
Ethan rolls his eyes. "What do you think?" he asks.
"You roll your eyes too much," William says.
How could William tell that Ethan was rolling his eyes?
Answer:- William is on the east side of the bridge, facing the West side of the kingdom, while Ethan is on the west side of the bridge, facing the East side of the kingdom. So William and Ethan are facing each other, and can see each other's faces.
Two trains are traveling toward each other on the same track, each at 60 miles per hour. When they are exactly 120 miles apart, a fly takes off from the front of one of the trains, flying toward the other train at a constant rate of 100 miles per hour. When the fly reaches the other train, it instantly changes directions and starts flying toward the other train, still at 100 miles per hour. It keeps doing this back and forth until the trains finally collide.
If you add up all the distances back and forth that the fly has travelled, how much total distance has the fly travelled when the trains finally collide?
Answer:- You should switch doors.
There are 3 possibilities for the first door you picked:
You picked the first wrong door - so if you switch, you win
You picked the other wrong door - again, if you switch, you win
You picked the correct door - if you switch, you lose
Each of these cases are equally likely. So if you switch, there is a 2/3 chance that you will win (because there is a 2/3 chance that you are in one of the first two cases listed above), and a 1/3 chance you'll lose. So switching is a good idea.
Another way to look at this is to imagine that you're on a similar game show, except with 100 doors. 99 of those doors have coal behind them, 1 has the money. The host tells you to pick a door, and you point to one, knowing almost certainly that you did not pick the correct one (there's only a 1 in 100 chance). Then the host opens 98 other doors, leave only the door you picked and one other door closed. We know that the host was forced to leave the door with money behind it closed, so it is almost definitely the door we did not pick initially, and we would be wise to switch.
Search: Monty Hall problem
