Interview Puzzle

Sasha is thinking about investing 20.000 dollars in a company, which offers him a fiveyear plan of divident payment at the end of each year: At the end of the first year, he will get 2000 dollars. At the end of the second year, he will get 4000 dollars. At the end of the third year, he will get 6000 dollars. At the end of the fourth year, he will get 6000 dollars again, and at the end of the last year of payment plan, he will get 5000 dollars.
What is the maximum interest rate a bank could offer to Sasha, so that the investment in the company is more payable for him than making a deposit in a bank?View SolutionSubmit Solution 1883 views
 1 answers
 0 votes

Two Arabs, one of whom is carrying 5 slices of bread, and the other one carrying 3 slices of bread, meet up with a wealthy but hungry passenger in the desert. All 3 of them eat together and everybody eats the same amount of food.The passenger pays 8 coins and continues on his way.
How are the two Arabs supposed to split the money so each of them gets a fair amount?View SolutionSubmit Solution 2830 views
 2 answers
 0 votes

You are visiting New York City when a man approaches you.
\”Not counting bald people, I bet a hundred bucks that there are two people living in New York City with the same number of hairs on their heads,\” he tells you.
\”I\’ll take that bet!\” you say. You talk to the man for a minute, after which you realize you have lost the bet.What did the man say to prove his case?
View SolutionSubmit Solution 1821 views
 2 answers
 0 votes

Two robots are placed at different points on a straight line of infinite length. When they are first placed down, they each spray out some oil to mark their starting points.
You must program each robot to ensure that the robots will eventually crash into each other. A program can consist of the following four instructions:
 Go left one space
 Go right one space
 Skip the next instruction if there is oil in my current spot
 Go to a label
[Note that a “label” is a name that refers to a line of your code. For example, you could label the third line of your program “surveying”. Then, the instruction “goto surveying” would jump to line 3 and start executing from there on the next cycle.]
A robot will carry out one instruction per second. Both robots need not have the same program. Note that you won’t know ahead of time which robot is on the left and which is on the right.
View SolutionSubmit Solution 1935 views
 1 answers
 0 votes

Tower of Hanoi 5 Disk Puzzle Game
The goal of the puzzle is to move all the disks from the leftmost peg to the rightmost peg,
Adhering to the following rules:
1) Move only one disk at a time.
A) Larger disk may not be placed on top of a smaller disk.Tower Of Hanoi – 3 Disk Puzzle Tower Of Hanoi – 4 Disk Puzzle Tower Of Hanoi – 5 Disk Puzzle Tower Of Hanoi – 6 Disk Puzzle View SolutionSubmit Solution 1731 views
 1 answers
 1 votes