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))
w1 =
16.6667
w2 =
17.1818
winner =
'Pete'
|
2 | Pass |
vf = 5.5;
vp = 6;
N = 2;
winner = 'Fred';
assert(isequal(chickenRace(vf,vp,N),winner))
w1 =
16.6667
w2 =
16.1818
winner =
'Fred'
|
3 | Pass |
vf = 6;
vp = 6;
N = 2;
winner = 'Fred';
assert(isequal(chickenRace(vf,vp,N),winner))
w1 =
16.6667
w2 =
14.6667
winner =
'Fred'
|
2472 Solvers
Arrange vector in ascending order
541 Solvers
90 Solvers
58 Solvers
80 Solvers