Lg Long wrote:I don't see how I can wrap Piet's solution so I can get a message 'not found' in case the condition is not meet.
That's a pleasure
Lg Long wrote:. . . Thank you for taking the time to help. . . .
That's because I mistakenly put a semicolon in somewhere. Sorry.
The fifth suggestion line 4, bracket after column.
Please explain more about that whenever you are back here.
The while loop doesn't behave as expected. I'll have to see how to fix that. . . .
Lg Long wrote:Paul,
You are right, would be easier to use sets, but we need a data structure that would allow duplicate objects.