See More

/* @filename 1408.stringMatching.cpp @author caonan @date 2022-04-17 16:13:09 @reference leetcode @url https://leetcode-cn.com/problems/string-matching-in-an-array/ @brief 给你一个字符串数组 words ,数组中的每个字符串都可以看作是一个单词。请你按 任意 顺序返回 words 中是其他单词的子字符串的所有单词。 如果你可以删除 words[j] 最左侧和/或最右侧的若干字符得到 word[i] ,那么字符串 words[i] 就是 words[j] 的一个子字符串。 */ #include #include #include #include #include #include #include #include #include #include using namespace std; class Solution { public: vector stringMatching(vector& words) { } }; int main(){ return 0; }