Cody

# Problem 45347. Cat's paw - 01

Solution 2192391

Submitted on 4 Apr 2020
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   Fail
a={'meaw','meao-meao','mew'}; assert(isequal( cats_paw(a),'dgkswy'))

Error in solution: Line: 4 Column: 23 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 4 Column: 23 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 4 Column: 23 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 4 Column: 23 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 4 Column: 23 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 4 Column: 23 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 4 Column: 23 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!