Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
%%
node_pairs = [8 9; 8 3];
tf = true;
assert(isequal(isConnected(node_pairs),tf))
ans =
0
|
2 | Pass |
%%
node_pairs = [ 1 2;
2 3;
1 4;
3 4;
5 6 ];
tf = false;
assert(isequal(isConnected(node_pairs),tf))
ans =
0
|
3 | Pass |
%%
node_pairs = [ 1 2;
2 3;
1 4;
3 4;
5 6;
6 2 ];
tf = true;
assert(isequal(isConnected(node_pairs),tf))
ans =
1
|
4 | Fail |
%%
node_pairs = [ 1 2; 2 100];
tf = true;
assert(isequal(isConnected(node_pairs),tf))
ans =
0
|
5 | Pass |
%%
node_pairs = [ 1 2; 50 100];
tf = false;
assert(isequal(isConnected(node_pairs),tf))
ans =
0
|
6 | Fail |
%%
node_pairs = [ 4 17 ];
tf = true;
assert(isequal(isConnected(node_pairs),tf))
ans =
0
|
235 Solvers
434 Solvers
248 Solvers
123 Solvers
How long do each of the stages of the rocket take to burn?
77 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!