Pirate Problem In Interview Question
- by Hafiz
Some one asked me this question in an interview, so I want to know that what can be technical or algorithmic or strategical solution can we provide?
If I am a leader of Pirates who looted 100kg gold, now every pirate has 1 bullet in gun and every pirate wants to get each other's share. They are 5 in number including me. So what strategy I will use to get to kill others while being safe or is there way to decrease probability?