Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
numOut = 5;
barIn = repmat( [1 1 1 0 0 0 1 0 1 0 0 0 1 1 1],[30,1]);;
assert(isequal(barDecoder(barIn),numOut))
in =
1 1 1 0 0 0 1 0 1 0 0 0 1 1 1
z =
1 5 7 11
|
2 | Fail |
numOut = 12;
barIn = repmat( [1 1 1 0 0 0 1 0 0 0 1 0 1 0 1 1 1],[30,1]);;
assert(isequal(barDecoder(barIn),numOut))
in =
1 1 1 0 0 0 1 0 0 0 1 0 1 0 1 1 1
z =
1 5 9 11 13
|
3 | Fail |
numOut = 135;
barIn = repmat( [1 1 1 0 0 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 0 1 0 0 0 1 1 1],[30,1]);;
assert(isequal(barDecoder(barIn),numOut))
in =
1 1 1 0 0 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 0 1 0 0 0 1 1 1
z =
1 5 7 9 11 13 17 21 25
|
4 | Fail |
numOut = 2;
barIn = repmat( [1 1 1 0 0 0 1 0 1 1 1],[30,1]);
assert(isequal(barDecoder(barIn),numOut))
in =
1 1 1 0 0 0 1 0 1 1 1
z =
1 5 7
|
5 | Fail |
numOut = 22;
barIn = repmat( [1 1 1 0 0 0 1 0 1 0 0 0 1 0 0 0 1 0 1 1 1],[30,1]);
assert(isequal(barDecoder(barIn),numOut))
in =
1 1 1 0 0 0 1 0 1 0 0 0 1 0 0 0 1 0 1 1 1
z =
1 5 7 11 15 17
|
Which values occur exactly three times?
3306 Solvers
Who knows the last digit of pi?
488 Solvers
204 Solvers
261 Solvers
201 Solvers