Cody

Problem 45259. Query edges list

Solution 2091368

Submitted on 13 Jan 2020 by Binbin Qi
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 = [1, 2, 3;... 4, 5, 6;... 7, 8, 9]; E = [1, 2;... 1, 3;... 2, 3;... 4, 5;... 4, 6;... 5, 6;... 7, 8;... 7, 9;... 8, 9]; assert(isequal(sortrows(sort(query_edges_list(T),2)),E))

2   Pass
T = [2, 3, 5;... 7, 11, 13;... 17, 19, 23]; E = [2, 3;... 2, 5;... 3, 5;... 7, 11;... 7, 13;... 11, 13;... 17, 19;... 17, 23;... 19, 23]; assert(isequal(sortrows(sort(query_edges_list(T),2)),E))