Light Mode
Dark Mode
Confused as to the max value returned

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: May 20, 2024, 10:11 p.m.
Updated: May 24, 2024, 3:17 p.m.
1
33
User avatar
kkkkk