This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
T_in = [1 2 3; 4 5 6; 1 2 3; 7 8 9; 6 4 5; 10 11 12; 2 1 3; 8 7 9; 10 11 12];
T_out = [1 2 3; 4 5 6; 7 8 9; 10 11 12];
assert(isequal(remove_duplicated_triangles(T_in),T_out))
ans =
1 2 3
4 5 6
7 8 9
10 11 12
|
2 | Pass |
T_in = [3 5 7];
T_out = T_in;
assert(isequal(remove_duplicated_triangles(T_in),T_out))
ans =
3 5 7
|
3 | Pass |
T_in = [2 11 13; 2 13 11; 11 2 13; 11 13 2; 13 2 11; 13 11 2];
T_out = [2 11 13];
assert(isequal(remove_duplicated_triangles(T_in),T_out))
ans =
2 11 13
|
227 Solvers
187 Solvers
273 Solvers
201 Solvers
45 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!