This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
W=200
L=400
CL=3
CW=6
y_correct = 2239;
assert(isequal(floor(minimumdist(W,L,CW,CL)),y_correct))
W =
200
L =
400
CL =
3
CW =
6
ans =
2239
|
2 | Pass |
%%
W=100
L=200
CL=2
CW=3
y_correct = 623;
assert(isequal(floor(minimumdist(W,L,CW,CL)),y_correct))
W =
100
L =
200
CL =
2
CW =
3
ans =
623
|
Arrange Vector in descending order
4083 Solvers
516 Solvers
Return the first and last characters of a character array
3460 Solvers
179 Solvers
Sum of diagonals elements of a matrix
166 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!