Search
⌘K
Leetcode 2800. Shortest String That Contains Three Strings
Find the shortest string that contains three given strings as substrings, breaking ties by lexicographic order. The core challenge is to merge the strings using maximal overlaps (considering all orders/permutations) to minimize total length and choose the lexicographically smallest result among equal-length candidates.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.