leetcode/include/s0028_find_the_index_of_the...

15 lines
304 B
C++

#ifndef S0028_FIND_THE_INDEX_OF_THE_FIRST_OCCURRENCE_IN_A_STRING_HPP
#define S0028_FIND_THE_INDEX_OF_THE_FIRST_OCCURRENCE_IN_A_STRING_HPP
#include <string>
using namespace std;
class S0028 {
public:
void getNext(int* next, const string& s);
int strStr(string haystack, string needle);
};
#endif