Cody

Solution 1739595

Submitted on 1 Mar 2019
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   Fail
x = [ 3 4 71 8 10]; [p v]=outx(x); assert(p==3) assert(v==71)

v = 63 p = 3

Assertion failed.

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

v = 710.5000 p = 4

Assertion failed.