Cody

# Problem 61. Find state names that end with the letter A

Solution 1471595

Submitted on 26 Mar 2018 by TurqoiseInt
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)))

t = 'Alabama' > < t = 'Montana' > < t = 'Nebraska' > < t = 'Vermont' > Vermont< t = 'Nevada' > Vermont <

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

t = 'Alabama' > < t = 'Alaska' > < t = 'Arizona' > < t = 'Arkansas' > Arkansas< t = 'California' > Arkansas < t = 'Colorado' > Arkansas Colorado< t = 'Connecticut' > Arkansas Colorado Connecticut< t = 'Delaware' > Arkansas Colorado Connecticut Delaware< t = 'Florida' > Arkansas Colorado Connecticut Delaware < t = 'Georgia' > Arkansas Colorado Connecticut Delaware < t = 'Hawaii' > Arkansas Colorado Connecticut Delaware Hawaii< t = 'Idaho' > Arkansas Colorado Connecticut Delaware Hawaii Idaho< t = 'Illinois' > Arkansas Colorado Connecticut Delaware Hawaii Idaho Illinois< t = 'Indiana' > Arkansas Colorado Connecticut Delaware Hawaii Idaho Illinois < t = 'Iowa' > Arkansas Colorado Connecticut Delaware Hawaii Idaho Illinois < t = 'Kansas' > Arkansas Colorado Connecticut Delaware Hawaii Idaho Illinois Kansas< t = 'Kentucky' > Arkansas Colorado Connecticut Delaware Hawaii Idaho Illinois Kansas Kentucky< t = 'Louisiana' > Arkansas Colorado Connecticut Delaware Hawaii Idaho Illinois Kansas Kentucky < t = 'Maine' > Arkansas Colorado Connecticut Delaware Hawaii Idaho Illinois Kansas Kentucky Maine< t = 'Maryland' > Arkansas Colorado Connecticut Delaware Hawaii Idaho Illinois Kansas Kentucky Maine Maryland< t = 'Massachusetts' > Arkansas Colorado Connecticut Delaware Hawaii Idaho Illinois Kansas Kentucky Maine Maryland Massachusetts< t = 'Michigan' > Arkansas Colorado Connecticut Delaware Hawaii Idaho Illinois Kansas Kentucky Maine Maryland Massachusetts Michigan< t = 'Minnesota' > Arkansas Colorado Connecticut Delaware Hawaii Idaho Illinois Kansas Kentucky Maine Maryland Massachusetts Michigan <

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

t = 'New' t = 'New York' >New York< t = 'North' t = 'North Carolina' >New York < t = 'Michigan' >New York Michigan< t = 'Arkansas' >New York Michigan Arkansas< t = 'Alabama' >New York Michigan Arkansas < t = 'North' t = 'North Dakota' >New York Michigan Arkansas < t = 'Hawaii' >New York Michigan Arkansas Hawaii< t = 'West' t = 'West Virginia' >New York Michigan Arkansas Hawaii < t = 'New' t = 'New Jersey' >New York Michigan Arkansas Hawaii New Jersey<