Problem 2937 · Easy

Make Three Strings Equal

Each operation deletes the last letter of one string. The strings can only meet on a shared prefix, so the cost follows from its length.

Open the interactive visualisation