Search
⌘K

Leetcode 1813. Sentence Similarity III

Determine whether one sentence can be turned into the other by inserting a single contiguous (possibly empty) sequence of words, i.e., check if the two sentences share a common prefix and suffix of words so that only a middle segment of the longer sentence needs to be inserted.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.