Test input : dog, dog, cat, cow, dog, horse, cat, dog
valid output : dog, cat, cow, horse
Probably insignificant details : this is for an email function Im writing, where a list of parts are associated with an email address, and I want to ‘lump’ all the parts that go to the same address together. Using php. I think solving the test case would solve my problem.
From inner to outer
,,again