Cody

Solution 104024

Submitted on 28 Jun 2012
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
%% x = {{{{{{{{} 'hello'} 'world'} 'this'} 'is'} 'a'} 'string'} 'array'}; y_correct = {'hello' 'world' 'this' 'is' 'a' 'string' 'array'}; assert(isequal(unInception(x),y_correct))
Error: CAT arguments dimensions are not consistent.
2   Pass
%% x = {}; y_correct = {}; assert(isequal(unInception(x),y_correct))
3   Fail
%% x = {{} ''}; y_correct = {''}; assert(isequal(unInception(x),y_correct))
Error: Assertion failed.
4   Fail
%% x = {{{{} 'hello'} ''} 'yeah'}; y_correct = {'hello' '' 'yeah'}; assert(isequal(unInception(x),y_correct))
Error: CAT arguments dimensions are not consistent.