Ala Qumsieh wrote: >In the 6th test case, shouldn't the expected value be: > >foo foo >acres cares races scare >alerts alters salter slater >airers ariser raiser sierra >deus dues sued used >reins resin rinse risen siren > >instead of : > >foo foo >acres cares races scare >airers ariser raiser sierra >alerts alters salter slater >deus dues sued used >reins resin rinse risen siren
No, the test program is correct. The line that begins with 'alerts' should come after the line that begins with 'airers'. Both lines have four anagrams, so they should be sorted alphabetically by their first word. --Dave