← ALL NOTES
String

1092. Shortest Common Supersequence

Find the shortest string containing both str1 and str2 as subsequences (any one if ties). The whole thing is built around the Longest Common Subsequence: the shared characters get written once, the…

Loading…