Solution 2190199

Submitted on 3 Apr 2020
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 Montana Nebraska Vermont Nevada'; s2 = ' Vermont '; assert(isequal(s2, refcn(s1)))

s2 = 'Albm Montn Nebrsk Vermont Nevd'

Assertion failed.

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

s2 = 'Albm Alsk Arizon Arknss Cliforni Colordo Connecticut Delwre Florid Georgi Hwii Idho Illinois Indin Iow Knss Kentucky Louisin Mine Mrylnd Msschusetts Michign Minnesot'

Assertion failed.

3   Fail
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)))

s2 = 'New York North Crolin Michign Arknss Albm North Dkot Hwii West Virgini New Jersey'

Assertion failed.