This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
vf = 5.5;
vp = 6;
N = 1;
winner = 'Pete';
assert(isequal(chickenRace(vf,vp,N),winner))
|
2 | Pass |
vf = 5.5;
vp = 6;
N = 2;
winner = 'Fred';
assert(isequal(chickenRace(vf,vp,N),winner))
ans =
Fred
|
3 | Pass |
vf = 6;
vp = 6;
N = 2;
winner = 'Fred';
assert(isequal(chickenRace(vf,vp,N),winner))
ans =
Fred
|
Back to basics 23 - Triangular matrix
532 Solvers
208 Solvers
394 Solvers
396 Solvers
Matlab Basics - Absolute Value
272 Solvers