Cody

Solution 1686975

Submitted on 5 Dec 2018 by Jean-Marie Sainthillier
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
nuggets = [2 5]; frob_correct = 3; assert(isequal(hungerGame(nuggets),frob_correct))

2   Pass
nuggets = [6 9 20]; frob_correct = 43; assert(isequal(hungerGame(nuggets),frob_correct))

3   Pass
nuggets = [17 19 32]; frob_correct = 175; assert(isequal(hungerGame(nuggets),frob_correct))

4   Pass
nuggets = [13 14 15]; frob_correct = 77; assert(isequal(hungerGame(nuggets),frob_correct))