Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 362 Bytes

README.md

File metadata and controls

7 lines (6 loc) · 362 Bytes

Puzzle-2

Distribution of gold coins among pirates. There are 5 pirates A, B, C, D, E. How Should A distribute the coins so that he does not get killed and also get maximum gold coins? Rules: each pirate wants to survive. Each pirate wants the maximum number of gold coins Given a situation of no gain no loss, each pirate would prefer to kill other pirate