Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
yr = [2 0 0 9];
tst = [2 0 1 0];
ia = 0;
assert(isequal(seq_appears(yr, tst),ia))
|
2 | Pass |
yr = [1 2 3 4];
tst = [5 6 7 8];
ia = 621;
assert(isequal(seq_appears(yr, tst),ia))
|
3 | Pass |
yr = [1 2 3 4];
tst = [4 5 6 7];
ia = 1125;
assert(isequal(seq_appears(yr, tst),ia))
|
4 | Pass |
yr = [1 1 1 1];
tst = [4 7 3 5];
ia = 5;
assert(isequal(seq_appears(yr, tst),ia))
|
5 | Pass |
yr = [1 1 1 1];
tst = [2 2 2 2];
ia = 0;
assert(isequal(seq_appears(yr, tst),ia))
|
6 | Pass |
yr = [1 1 1 1];
tst = [7 7 7 7];
ia = 1171;
assert(isequal(seq_appears(yr, tst),ia))
|
7 | Pass |
yr = [0 0 0 1];
tst = [9 0 0 0];
ia = 780;
assert(isequal(seq_appears(yr, tst),ia))
|
Find the peak 3n+1 sequence value
1107 Solvers
Project Euler: Problem 1, Multiples of 3 and 5
1492 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
315 Solvers
Sum of diagonal of a square matrix
1327 Solvers
Return elements unique to either input
550 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!