Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
p0 = [0 0 0];
p1 = [1 1 1];
p2 = [2 2 2];
p3 = [3 3 3];
t0 = 0;
t1 = 1;
d = 1;
ok = true;
assert(isequal(safetrip(d, t0, t1, p0, p1, p2, p3), ok))
|
2 | Pass |
p0 = [3 3 3];
p1 = [2 2 2];
p2 = [2 2 2];
p3 = [3 3 3];
t0 = 0;
t1 = 1;
d = 1;
ok = false;
assert(isequal(safetrip(d, t0, t1, p0, p1, p2, p3), ok))
|
3 | Pass |
p0 = [1 2 3];
p1 = [4 5 6];
p2 = [3 2 1];
p3 = [6 5 4];
t0 = 10;
t1 = 20;
d = 2;
ok = true;
assert(isequal(safetrip(d, t0, t1, p0, p1, p2, p3), ok))
|
1166 Solvers
244 Solvers
Back to basics 11 - Max Integer
611 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
231 Solvers
Digit concentration in Champernowne's constant
102 Solvers