Cody

Solution 190025

Submitted on 12 Jan 2013 by Tomasz
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 = ' MATLAB'; y_correct = ' MATLAB '; assert(isequal(justify(x),y_correct))
x = MATLAB x = MATLAB
2   Pass
%% x = 'MATLAB '; y_correct = ' MATLAB '; assert(isequal(justify(x),y_correct))
x = ATLAB M x = TLAB MA x = LAB MAT x = AB MATL x = B MATLA x = MATLAB x = MATLAB x = MATLAB
3   Pass
%% x = ' MATLAB '; y_correct = ' MATLAB '; assert(isequal(justify(x),y_correct))
x = MATLAB x = ATLAB M x = TLAB MA x = LAB MAT x = AB MATL x = B MATLA x = MATLAB x = MATLAB x = MATLAB
4   Pass
%% x = ' MATLAB '; y_correct = ' MATLAB '; assert(isequal(justify(x),y_correct))