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 45a751e commit 9255738Copy full SHA for 9255738
strings/knuth_morris_pratt.cpp
@@ -10,16 +10,13 @@
10
* 2. Step through the text one character at a time and compare it to a
11
* character in the pattern updating our location within the pattern if
12
* necessary
13
+ * @author [Yancey](https://github.com/Yancey2023)
14
*/
15
-#include <iostream>
16
-#ifdef _MSC_VER
17
-#include <string> // use this for MS Visual C++
18
-#else
19
-#include <cstring>
20
-#endif
21
-#include <cassert>
22
-#include <vector>
+#include <cassert> /// for assert
+#include <iostream> /// for IO operations
+#include <string> /// for std::string
+#include <vector> /// for std::vector
23
24
/**
25
* @namespace string_search
0 commit comments