in reply to Re: Long list is long
in thread Long list is long

It is not fully spelled out, but I think it likely that "the original lists are sorted" was intended by the OP to mean that "the lines are sorted by value" (as the output is required to be), not that the words appear in ASCII order.

This is additionally hinted at by the initial 4-line example input.

Replies are listed 'Best First'.
Re^3: Long list is long
by dsheroh (Monsignor) on Nov 01, 2022 at 08:33 UTC
    *facepalm* Good catch. I was so busy being clever that I forgot to read the specs properly. Thanks for pointing it out!