Cody

Solution 1821975

Submitted on 21 May 2019
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
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 Nebraska Nevada Ohio Oklahoma Oregon Pennsylvania Tennessee Texas Utah Vermont Virginia Washington Wisconsin Wyoming'; assert(isequal(s2,refcn(s1)))

Extra = 1×5 cell array {'New'} {'North'} {'Rhode'} {'South'} {'West'} R = 1×60 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'} {'Nebraska'} {'Nevada'} {'New'} {'Hampshire'} {'New'} {'Jersey'} {'New'} {'Mexico'} Columns 35 through 47 {'New'} {'York'} {'North'} {'Carolina'} {'North'} {'Dakota'} {'Ohio'} {'Oklahoma'} {'Oregon'} {'Pennsylvania'} {'Rhode'} {'Island'} {'South'} Columns 48 through 59 {'Carolina'} {'South'} {'Dakota'} {'Tennessee'} {'Texas'} {'Utah'} {'Vermont'} {'Virginia'} {'Washington'} {'West'} {'Virginia'} {'Wisconsin'} Column 60 {'Wyoming'} idx = 29 31 33 35 37 39 45 47 49 57 R = 1×40 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 33 {'Minnesota'} {'Mississippi'} {'Missouri'} {'Montana'} {'Nebraska'} {'Nevada'} {'Ohio'} {'Oklahoma'} {'Oregon'} {'Pennsylvania'} {'Tennessee'} Columns 34 through 40 {'Texas'} {'Utah'} {'Vermont'} {'Virginia'} {'Washington'} {'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 Nebraska Nevada Ohio Oklahoma Oregon Pennsylvania Tennessee Texas Utah Vermont Virginia Washington Wisconsin Wyoming'

Assertion failed.

2   Fail
s1 = 'New York Nevada Texas Utah Vermont West Virginia Virginia'; s2 = ' Nevada Texas Utah Vermont Virginia'; assert(isequal(s2,refcn(s1)))

Extra = 1×5 cell array {'New'} {'North'} {'Rhode'} {'South'} {'West'} R = 1×9 cell array {'New'} {'York'} {'Nevada'} {'Texas'} {'Utah'} {'Vermont'} {'West'} {'Virginia'} {'Virginia'} idx = 1 7 R = 1×5 cell array {'Nevada'} {'Texas'} {'Utah'} {'Vermont'} {'Virginia'} s2 = 'Nevada Texas Utah Vermont Virginia'

Assertion failed.