Quant Finance

Q6 BT: Burning Ropes

Q6 BT: Burning Ropes

Question 6 from the book “A Practical Guide to Quantitative Finance Interviews” by Zhou Xinfeg.

You have two ropes, each of which takes I hour to burn. But either rope has different densities at different points, so there’s no guarantee of consistency in the time it takes different sections within the rope to bum. How do you use these two ropes to measure 45 minutes?

Solution and explanation

Get one of the ropes and burn it at either end and the second one end. It will take 30 minutes to burn up the first one. At this instance the second will still be left with 30 minutes to burn out. Immediately burn the other end of the second rope. This will halve the 30 minutes left to 15. Add 15 for this last half of the second rope to 30 for burning the first rope and half one of the second rope and you have 45 minutes.

Q5 BT: Card Game

Q5 BT: Card Game

Question 5 from the book “A Practical Guide to Quantitative Finance Interviews” by Zhou Xinfeg.

Card Game Problem Statement

A casino offers a card game using a normal deck of 52 cards. The rule is that you turn over two cards each time. For each pair, if both are black, they go to the dealer’s pile; if both are red, they go to your pile; if one black and one red, they are discarded. The process is repeated until you two go through all 52 cards. If you have more cards in your pile, you win $100; otherwise (including ties) you get nothing. The casino allows you to negotiate the price you want to pay for the game. How much would you be willing to pay to play this game?

Q4 BT: Birthday Problem

Q4 BT: Birthday Problem

Question 4 from the book “A Practical Guide to Quantitative Finance Interviews” by Zhou Xinfeg.

You and your colleagues know that your boss A’s birthday is one of the following 10 dates: Mar 4, Mar 5, Mar 8, Jun 4, Jun 7, Sep 1, Sep 5, Dec 1, Dec 2, Dec 8. A told you only the month of his birthday, and told your colleague C only the day. After that, you first said: “I don’t know A’s birthday; C doesn’t know it either.” After hearing what you said, C replied: “I didn’t know A’s birthday, but now I know it.” You smiled and said: “Now I know it, too.” After looking at the 10 dates and hearing your comments, your administrative assistant wrote down A’s birthday without asking any questions. So what did the assistant write?

Q3 BT: River Crossing

Q3 BT: River Crossing

Question 3 from the book “A Practical Guide to Quantitative Finance Interviews” by Zhou Xinfeg.

Four people, A, B, C and D need to get across a river. The only way to cross the river is by an old bridge, which holds at most 2 people at a time. Being dark, they can’t cross the bridge without a torch, of which they only have one. So each pair can only walk at the speed of the slower person. They need to get all of them across to the other side as quickly as possible. A is the slowest and takes 10 minutes to cross; B takes 5 minutes; C takes 2 minutes; and D takes 1 minute. What is the minimum time to get all of them across to the other side?

Q2 BT: Tiger and Sheep

Q2 BT: Tiger and Sheep

Brain teaser number two from the book “A Practical Guide to Quantitative Finance Interviews” by Zhou Xinfeg.

Question statement

One hundred tigers and one sheep are put on a magic island that only has grass. Tigers can eat grass, but they would rather eat sheep. Assume: (A). Each time only one tiger can eat one sheep, and that tiger itself will become a sheep after it eat the sheep. (B). All tigers are smart and perfectly rational and they want to survive. So will the sheep be eaten?

Q1 BT: Screwy Pirates

Q1 BT: Screwy Pirates

This is the first post am making in this series. For all the posts in the series, I plan to share my solutions to the problems in the book “A Practical Guide to Quantitative Finance Interviews” by Zhou Xinfeg. The first set of problems is brain teasers. Let’s solve it.

Screwy Pirates Problem Statement.

Five pirates looted a chest full of 100 gold coins. Being a bunch of democratic pirates, they agree on the following method to divide the loot: The most senior pirate will propose a distribution of the coins. All pirates, including the most senior pirate, will then vote. If at least 50% of the pirates (3 pirates in this case) accept the proposal, the gold is divided as proposed. If not, the most senior pirate will be fed to shark and the process starts over with the next most senior pirate … The process is repeated until a plan is approved. You can assume that all pirates are perfectly rational: they want to stay alive first and to get as much gold as possible second. Finally, being blood-thirsty pirates, they want to have fewer pirates on the boat if given a choice between otherwise equal outcomes. How will the gold coins be divided in the end?