Cody

Problem 45230. Remove duplicated triangles

Solution 2191674

Submitted on 4 Apr 2020 by bainhome
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

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))

2   Pass
T_in = [3 5 7]; T_out = T_in; assert(isequal(remove_duplicated_triangles(T_in),T_out))

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))