Cody

Solution 1997161

Submitted on 31 Oct 2019 by Nikolaos Nikolaou
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
x = {'twenty-one'; 'twenty-two'; 'twenty-three'; 'one'; 'two'; 'three'}; for i = 1:6 assert(isequal(cellfind(x{i}, x),i)) validatestring(x{cellfind(x{i}, x)}, {x{i}}) end

y = 1 y = 1 ans = 'twenty-one' y = 2 y = 2 ans = 'twenty-two' y = 3 y = 3 ans = 'twenty-three' y = 4 y = 4 ans = 'one' y = 5 y = 5 ans = 'two' y = 6 y = 6 ans = 'three'