Cody

Solution 1471973

Submitted on 27 Mar 2018 by Prajit T R
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
s1 = 'North Carolina Tennessee Texas Nebraska Maine'; s2 = ' Tennessee Texas Maine'; assert(isequal(s2,refcn(s1)))

2   Pass
s1 = 'Nebraska Nevada New Hampshire New Jersey New Mexico New York North Carolina North Dakota'; s2 = ' '; assert(isequal(s2,refcn(s1)))

3   Pass
s1 = 'Alabama Alaska Arizona Arkansas California Colorado Connecticut Delaware Florida Georgia Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota Mississippi Missouri Montana Nebraska Nevada New Hampshire New Jersey New Mexico New York North Carolina North Dakota Ohio Oklahoma Oregon Pennsylvania Rhode Island South Carolina South Dakota Tennessee Texas Utah Vermont Virginia Washington West Virginia Wisconsin Wyoming'; s2 = 'Alabama Alaska Arizona Arkansas California Colorado Connecticut Delaware Florida Georgia Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota Mississippi Missouri Montana Ohio Oklahoma Oregon Pennsylvania Rhode Island South Carolina South Dakota Tennessee Texas Utah Vermont Virginia Washington West Virginia Wisconsin Wyoming'; assert(isequal(s2,refcn(s1)))

s2 = 1×54 cell array Columns 1 through 11 {'Alabama'} {'Alaska'} {'Arizona'} {'Arkansas'} {'California'} {'Colorado'} {'Connecticut'} {'Delaware'} {'Florida'} {'Georgia'} {'Hawaii'} Columns 12 through 22 {'Idaho'} {'Illinois'} {'Indiana'} {'Iowa'} {'Kansas'} {'Kentucky'} {'Louisiana'} {'Maine'} {'Maryland'} {'Massachusetts'} {'Michigan'} Columns 23 through 34 {'Minnesota'} {'Mississippi'} {'Missouri'} {'Montana'} {0×0 char} {0×0 char} {0×0 char} {0×0 char} {0×0 char} {0×0 char} {0×0 char} {0×0 char} Columns 35 through 45 {'Ohio'} {'Oklahoma'} {'Oregon'} {'Pennsylvania'} {'Rhode'} {'Island'} {'South Dakota'} {0×0 char} {'South Dakota'} {0×0 char} {'Tennessee'} Columns 46 through 54 {'Texas'} {'Utah'} {'Vermont'} {'Virginia'} {'Washington'} {'West'} {'Virginia'} {'Wisconsin'} {'Wyoming'} s2 = 1×52 cell array Columns 1 through 11 {'Alabama'} {'Alaska'} {'Arizona'} {'Arkansas'} {'California'} {'Colorado'} {'Connecticut'} {'Delaware'} {'Florida'} {'Georgia'} {'Hawaii'} Columns 12 through 22 {'Idaho'} {'Illinois'} {'Indiana'} {'Iowa'} {'Kansas'} {'Kentucky'} {'Louisiana'} {'Maine'} {'Maryland'} {'Massachusetts'} {'Michigan'} Columns 23 through 34 {'Minnesota'} {'Mississippi'} {'Missouri'} {'Montana'} {0×0 char} {0×0 char} {0×0 char} {0×0 char} {0×0 char} {0×0 char} {0×0 char} {0×0 char} Columns 35 through 45 {'Ohio'} {'Oklahoma'} {'Oregon'} {'Pennsylvania'} {'Rhode'} {'Island'} {'South Carolina'} {'South Dakota'} {'Tennessee'} {'Texas'} {'Utah'} Columns 46 through 52 {'Vermont'} {'Virginia'} {'Washington'} {'West'} {'Virginia'} {'Wisconsin'} {'Wyoming'}