aboutsummaryrefslogtreecommitdiff
path: root/String
diff options
context:
space:
mode:
authorTa180m2019-09-16 22:08:32 -0500
committerTa180m2019-09-16 22:08:32 -0500
commit2c3db2a92acee49f2d353ae838ccdd9ad1587e42 (patch)
tree78d333cbf50fef569e3241094320131c5f46501a /String
parent12181073dbbd4a3d7acc94695dc3525020a5ac03 (diff)
Updated libaries
Diffstat (limited to 'String')
-rw-r--r--String/kmp.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/String/kmp.cpp b/String/kmp.cpp
index 4667e78..340351b 100644
--- a/String/kmp.cpp
+++ b/String/kmp.cpp
@@ -1,7 +1,3 @@
-#include <string>
-#include <vector>
-using namespace std;
-
int KMP(string &S, string &T) {
// Generate KMP table
vector<int> F(T.length() + 1, 0);
@@ -26,4 +22,4 @@ int KMP(string &S, string &T) {
}
return -1; // Match not found
-}
+} \ No newline at end of file