This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [-1,-1];
y = [1,1];
z = [4,5];
assert(isequal(distanceRectangle2Point(x,y,z),5))
d_correct = 5;
|
2 | Pass |
%%
x = [-2,-1];
y = [3,1];
z = [1,2];
assert(isequal(distanceRectangle2Point(x,y,z),1))
d_correct = 1;
|
3 | Pass |
%%
x = [1,2];
y = [3,4];
z = [-5,3];
assert(isequal(distanceRectangle2Point(x,y,z),6))
d_correct = 6;
|
4 | Pass |
%%
x = [2,2];
y = [4,4];
z = [3,4];
assert(isequal(distanceRectangle2Point(x,y,z),0))
d_correct = 0;
|
5 | Pass |
%%
x = [-1,0,1];
y = [0,2,4];
z = [4,5,3];
assert(isequal(distanceRectangle2Point(x,y,z),5))
d_correct = 5;
|
6 | Pass |
%%
x = [1,0,1];
y = [2,3,2];
z = [-1,-2,3];
assert(isequal(distanceRectangle2Point(x,y,z),3))
d_correct = 3;
|
Project Euler: Problem 8, Find largest product in a large string of numbers
315 Solvers
277 Solvers
Return a list sorted by number of consecutive occurrences
173 Solvers
Flip the vector from right to left
2666 Solvers
518 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!