leetcode/include/s0459_repeated_substring_pattern.hpp

15 lines
247 B
C++
Raw Normal View History

2022-12-01 13:03:25 +00:00
#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