3
bool isCommon(string &s, string &t) {5
for (int i = 0; i < s.size(); i++) {6
if (s[i] == t[index]) {7
if (++index == t.size()) {14
bool isUncommon(vector<string> &strs, int index) {15
for (int i = 0; i < strs.size() and strs[index].size() <= strs[i].size(); i++) {16
if (index != i and isCommon(strs[i], strs[index])) {24
int findLUSlength(vector<string> &strs) {25
sort(strs.begin(), strs.end(), [](string &s, string &t) { return s.size() > t.size(); });27
for (int i = 0; i < strs.size(); i++) {28
if (isUncommon(strs, i)) {