NeetCode #213LC-1813MediumTwo Pointers
← Back to All Problems

#213 · #1813 · Sentence Similarity III(句子相似性 III)

📌 Problem Statement & Constraints

A sentence is similar to another if you can insert an arbitrary sentence (possibly empty) inside one of them to make them equal. Given two sentences as strings, return whether they are similar. Constraints: 1 <= sentence1.length, sentence2.length <= 100; words are separated by single spaces.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!