Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 2;
y = [1;0;1;1;0;1;1];
assert(isequal(soroban_set(x),y))
|
2 | Pass |
x = 10586;
y = [ 1 1 0 0 0
0 0 1 1 1
1 0 0 1 1
0 1 1 1 0
1 1 1 1 1
1 1 1 0 1
1 1 1 1 1 ];
assert(isequal(soroban_set(x),y))
|
3 | Pass |
x = 0;
y = [ 1
0
0
1
1
1
1 ];
assert(isequal(soroban_set(x),y))
|
4 | Pass |
x = 50000;
y = [ 0 1 1 1 1
1 0 0 0 0
0 0 0 0 0
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1 ];
assert(isequal(soroban_set(x),y))
|
5 | Pass |
x = 9876543210;
y = [ 0 0 0 0 0 1 1 1 1 1
1 1 1 1 1 0 0 0 0 0
1 1 1 1 0 1 1 1 1 0
1 1 1 0 1 1 1 1 0 1
1 1 0 1 1 1 1 0 1 1
1 0 1 1 1 1 0 1 1 1
0 1 1 1 1 0 1 1 1 1 ];
assert(isequal(soroban_set(x),y))
|
Determine whether a vector is monotonically increasing
9255 Solvers
Renaming a field in a structure array
542 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
196 Solvers
English to Pig Latin Translator
37 Solvers
Make a run-length companion vector
453 Solvers