We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f523cda commit 9c5dd37Copy full SHA for 9c5dd37
C++/stream-of-characters2.cpp
@@ -2,7 +2,7 @@
2
// , p is the number of patterns
3
// query: O(m + z), m is the total size of query string
4
// , z is the number of all matched strings
5
-// , query would be O(m) if we don't use all the matched patterns
+// , query time would be O(m) if we don't use all the matched patterns
6
// Space: O(t + p^2), t is the total size of ac automata trie
7
// , space could be further improved by DAT (double-array trie)
8
0 commit comments