Cody

Solution 2054424

Submitted on 11 Dec 2019 by Athi
  • Size: 14
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

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

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