Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x =[2 2 1 1 2 1 2;
1 2 2 1 1 1 1;
1 2 1 1 2 2 2;
2 1 2 2 2 1 1;
1 1 2 1 2 1 1;
2 1 1 2 2 2 1];
assert(isequal(connect_four(x),1))
|
2 | Pass |
x =[ 2 2 1 1 2 1 2
1 2 2 1 1 1 1
1 2 1 1 2 2 2
2 1 2 2 2 1 1
1 1 2 1 2 1 1
2 1 1 2 2 2 2];
assert(isequal(connect_four(x),0))
|
3 | Pass |
x = [2 2 1 1 2 1 2
1 2 2 1 1 1 1
1 2 1 1 1 2 2
2 1 2 2 2 1 1
1 1 2 1 2 1 2
2 1 1 2 2 2 2
1 1 2 1 2 1 2];
assert(isequal(connect_four(x),1))
|
4 | Pass |
x =[2 2 1 1 2 1 2 1
1 2 2 1 1 1 1 2
1 2 1 1 1 2 2 2
2 1 2 2 2 1 1 2
1 1 2 1 2 1 2 2
2 1 1 2 2 2 2 1
1 1 2 1 2 1 2 1];
assert(isequal(connect_four(x),2))
|
5 | Pass |
x = [2 2 1 1 2 1 2 1
1 2 2 1 1 1 1 2
1 2 1 1 1 2 2 2
2 1 2 2 2 1 1 2
1 1 2 1 2 1 2 2
2 1 1 2 2 2 2 1
1 1 2 1 2 1 2 1
1 2 1 1 1 1 2 1];
assert(isequal(connect_four(x),0))
|
Given two strings, find the maximum overlap
461 Solvers
519 Solvers
Test if a Number is a Palindrome without using any String Operations
181 Solvers
56 Solvers
257 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!