Interview Query

Stranded Miner

Start Timer

0:00:00

Upvote
15
Downvote
Save question
Mark as completed
View comments (30)
Next question

A miner is stranded and there are two paths he can take.

Path AA loops back to itself and takes him 5 days to walk it.

Path BB brings him to a junction immediately (0 days). The junction at the end of path BB has two paths: Path BABA and Path BBBB.

Path BABA brings him back to his original starting point and takes him 2 days to walk. Path BBBB brings him to safety and takes him 1 day to walk.

Each path has an equal probability of being chosen and once a wrong path is chosen, the miner gets disoriented and cannot remember which path he went through.

What is the expected value of the amount of days he will spend before he exits the mine?

.
.
.
.
.


Comments

Loading comments