Cody

Solution 1057256

Submitted on 20 Nov 2016 by Alfonso Nieto-Castanon
  • Size: 20
  • 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
x = [1,1]; y_correct = true; assert(Balance(x)==y_correct);

2   Pass
x = [1,7]; y_correct = false; assert(Balance(x)==y_correct);

3   Pass
x = [2,3,5]; y_correct = true; assert(Balance(x)==y_correct);

4   Pass
x = 1:4; y_correct = true; assert(Balance(x)==y_correct);

5   Pass
x = 1:5; y_correct = false; assert(Balance(x)==y_correct);

6   Pass
x = [2,3,7]; y_correct = false; assert(Balance(x)==y_correct);

Suggested Problems

More from this Author9