Cody

Solution 1051310

Submitted on 12 Nov 2016 by Binbin Qi
  • Size: 26
  • This is the leading solution.
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))

Suggested Problems

More from this Author63