Cody

Solution 2135394

Submitted on 21 Feb 2020 by Asif Newaz
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={'meaw','meao-meao','mew'}; assert(isequal( cats_paw(a),'dgkswy'))

b = 4 9 3

2   Pass
a={'meaw','meao-meao','mew','meawww'} assert(isequal( cats_paw(a),'dgkswych'))

a = 1×4 cell array {'meaw'} {'meao-meao'} {'mew'} {'meawww'} b = 4 9 3 6

3   Pass
a={'mew','meawww','mew-mew-mew','meawwwww','meawww-mewaww-meaawwww'} assert(isequal( cats_paw(a),'dfjoscgnrm'))

a = 1×5 cell array {'mew'} {'meawww'} {'mew-mew-mew'} {'meawwwww'} {'meawww-mewaww-meaawwww'} b = 3 6 11 8 22

4   Pass
%a={''}; %assert( isempty(cats_paw(a)))

5   Pass
a={'meaw','','meao-meao','mew','meawww'} assert(isequal( cats_paw(a),'dgkswych'))

a = 1×5 cell array {'meaw'} {0×0 char} {'meao-meao'} {'mew'} {'meawww'} b = 4 0 9 3 6

6   Pass
a={'meawwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww'} assert(isequal( cats_paw(a),'de'))

a = 1×1 cell array {'meawwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww'} b = 54

7   Pass
a={'meaw','meao-meao','mew','','','','meawww',''} assert(isequal( cats_paw(a),'dgkswych'))

a = 1×8 cell array {'meaw'} {'meao-meao'} {'mew'} {0×0 char} {0×0 char} {0×0 char} {'meawww'} {0×0 char} b = 4 9 3 0 0 0 6 0