Cody

Solution 879939

Submitted on 21 Apr 2016 by William
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 = 'Alabama Montana Nebraska Vermont Nevada'; s2 = ' Vermont '; assert(isequal(s2, refcn(s1)))

s1 = 0000000 Montana Nebraska Vermont Nevada s1 = 0000000 0000000 Nebraska Vermont Nevada s1 = 0000000 0000000 00000000 Vermont Nevada s1 = 0000000 0000000 00000000 Vermont 000000

2   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'; s2 = ' Arkansas Colorado Connecticut Delaware Hawaii Idaho Illinois Kansas Kentucky Maine Maryland Massachusetts Michigan '; assert(isequal(s2, refcn(s1)))

s1 = 0000000 Alaska Arizona Arkansas California Colorado Connecticut Delaware Florida Georgia Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota s1 = 0000000 000000 Arizona Arkansas California Colorado Connecticut Delaware Florida Georgia Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota s1 = 0000000 000000 0000000 Arkansas California Colorado Connecticut Delaware Florida Georgia Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota s1 = 0000000 000000 0000000 Arkansas 0000000000 Colorado Connecticut Delaware Florida Georgia Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota s1 = 0000000 000000 0000000 Arkansas 0000000000 Colorado Connecticut Delaware 0000000 Georgia Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota s1 = 0000000 000000 0000000 Arkansas 0000000000 Colorado Connecticut Delaware 0000000 0000000 Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota s1 = 0000000 000000 0000000 Arkansas 0000000000 Colorado Connecticut Delaware 0000000 0000000 Hawaii Idaho Illinois 0000000 Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota s1 = 0000000 000000 0000000 Arkansas 0000000000 Colorado Connecticut Delaware 0000000 0000000 Hawaii Idaho Illinois 0000000 0000 Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota s1 = 0000000 000000 0000000 Arkansas 0000000000 Colorado Connecticut Delaware 0000000 0000000 Hawaii Idaho Illinois 0000000 0000 Kansas Kentucky 000000000 Maine Maryland Massachusetts Michigan Minnesota s1 = 0000000 000000 0000000 Arkansas 0000000000 Colorado Connecticut Delaware 0000000 0000000 Hawaii Idaho Illinois 0000000 0000 Kansas Kentucky 000000000 Maine Maryland Massachusetts Michigan 000000000

3   Pass
s1 = 'New York North Carolina Michigan Arkansas Alabama North Dakota Hawaii West Virginia New Jersey'; s2 = 'New York Michigan Arkansas Hawaii New Jersey'; assert(isequal(s2, refcn(s1)))

s1 = New York 00000000000000 Michigan Arkansas Alabama North Dakota Hawaii West Virginia New Jersey s1 = New York 00000000000000 Michigan Arkansas 0000000 North Dakota Hawaii West Virginia New Jersey s1 = New York 00000000000000 Michigan Arkansas 0000000 000000000000 Hawaii West Virginia New Jersey s1 = New York 00000000000000 Michigan Arkansas 0000000 000000000000 Hawaii 0000000000000 New Jersey