Cody

Solution 1265009

Submitted on 8 Sep 2017 by goc3
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 = [ 3 4 71 8 10]; [p v]=outx(x); assert(p==3) assert(v==71)

i = 3 5 4 2 1

2   Pass
x = [ 0 3 -7 -714 8 -10]; [p v]=outx(x); assert(p==4) assert(v== -714)

i = 4 6 5 3 2 1

Suggested Problems

More from this Author100