Cody

Solution 402892

Submitted on 12 Feb 2014 by James
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
%% a = [9 9 9 9 9 97 7 76 6 6 5 54 2 1]; b = [1 1 13 3 3 44 4 10 110]; y_correct = [9 97 7 76 6 5 54 2 1 13 3 44 4 10 110]; assert(isequal(union_without_repitition(a,b),y_correct))

b = 1 13 3 3 44 4 10 110 b = 13 3 3 44 4 10 110 a1 = 1 2 5 6 7 9 54 76 97 a2 = 14 13 11 9 7 1 12 8 6 b1 = 3 4 10 13 44 110 b2 = 2 5 6 1 4 7 ans = 9 97 7 76 6 5 54 2 1 13 3 44 4 10 110

2   Pass
%% a = [96 6 65 54 2 1]; b = [1 13 3 3 3 44 4 4 410 10 10]; y_correct =[96 6 65 54 2 1 13 3 44 4 410 10]; assert(isequal(union_without_repitition(a,b),y_correct))

b = 13 3 3 3 44 4 4 410 10 10 a1 = 1 2 6 54 65 96 a2 = 6 5 2 4 3 1 b1 = 3 4 10 13 44 410 b2 = 2 6 9 1 5 8 ans = 96 6 65 54 2 1 13 3 44 4 410 10