请问地下雨水排水管重铺设到哪里找人啊?# Living
p*p
1 楼
Given N sentences containing lower case letters only, remove all common
phrases from each sentence. A common phrase is defined as three or more
consecutive words that appears in all sentences.
For example,
S1 = "q a b c d"
S2 = "a b c d e"
The only common phrase is "a b c d", so the sentences become:
S1 = "q"
S2 = "e"
You may assume N ≤ 100, and each sentence could contain millions of words.
没什么好的想法,大拿们讲讲思路?
phrases from each sentence. A common phrase is defined as three or more
consecutive words that appears in all sentences.
For example,
S1 = "q a b c d"
S2 = "a b c d e"
The only common phrase is "a b c d", so the sentences become:
S1 = "q"
S2 = "e"
You may assume N ≤ 100, and each sentence could contain millions of words.
没什么好的想法,大拿们讲讲思路?