one and two. Each is a list of words made of English letters, separated by single spaces, with no leading or trailing spaces.
Can you insert some whole words (possibly none) into **one** spot of one of the sentences so that the two become identical? The spot may be the start, the end or a gap between two words, but never the inside of a word. For example, "Good day" becomes "Good sunny day", but "Sun day" cannot become "Sunny day": the inserted "ny" is not separated by a space.
Return True if it is possible, otherwise False. Letter case matters.one="Meet me at the gate", two="Meet me gate" → True
Inserting "at the" between "me" and "gate" in the second sentence turns it into the first.
one="red car", two="red fast car now" → False
The missing words sit in two different places ("fast" and "now"), but only one insertion is allowed.
one="Hat", two="hat" → False
Case matters: "Hat" and "hat" are different words.
one="Meet me at the gate", two="Meet me gate"
True
Run checks the first 3 tests in your browser. Submit checks all 198 tests on the server, hidden ones included.