摘要:
Store the words in the trie with reverse order, and check the query string from the end 阅读全文
posted @ 2019-10-06 16:38
neverlandly
阅读(360)
评论(0)
推荐(0)
摘要:
Complexity Analysis Time Complexity: O(M + N)O(M+N), where M, NM,N are the lengths of S and T respectively. Space Complexity: O(1)O(1). Time Complexit 阅读全文
posted @ 2019-10-06 09:58
neverlandly
阅读(135)
评论(0)
推荐(0)
浙公网安备 33010602011771号