Ezvor

3571. Find the Shortest Superstring II

EasyString Preparing judge… LeetCode
String

Hints

Hint 1
Check for the maximum suffix of one string that matches a prefix of the other (in both directions) and merge accordingly.