In the sample case where there is 15 pieces of gold and 1 sailor, the captain would get 10 pieces and the sailor 5, or the sailor could take all 15 pieces. The expected answer is 10; I expected 15.
What is the max value you're expecting us to return or why is the answer 10 versus 15?
Created at: 2024/05/20 22:11; Updated at: 2024/05/24 15:17