leetcode/include/s0459_repeated_substring_pattern.hpp

15 lines
247 B
C++

#ifndef S0459_REPEATED_SUBSTRING_PATTERN_HPP
#define S0459_REPEATED_SUBSTRING_PATTERN_HPP
#include <string>
using namespace std;
class S0459 {
public:
bool repeatedSubstringPattern(string s);
void getNext(string &s, int *next);
};
#endif