Given code merges two strings, writing their overlapping ends only once. It is documented — and it has a bug. Make it match its specification.
Given code merges two strings, writing their overlapping ends only once. It is documented — and it has a bug. Make it match its specification.
The discussion opens with the full question.