Skip to content

Commit 9255738

Browse files
committed
update knuth_morris_pratt.cpp
1 parent 45a751e commit 9255738

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

strings/knuth_morris_pratt.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@
1010
* 2. Step through the text one character at a time and compare it to a
1111
* character in the pattern updating our location within the pattern if
1212
* necessary
13+
* @author [Yancey](https://github.com/Yancey2023)
1314
*/
1415

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>
16+
#include <cassert> /// for assert
17+
#include <iostream> /// for IO operations
18+
#include <string> /// for std::string
19+
#include <vector> /// for std::vector
2320

2421
/**
2522
* @namespace string_search

0 commit comments

Comments
 (0)