Repeated Substring Pattern

This commit is contained in:
2022-12-01 21:03:25 +08:00
parent 9ce930f11f
commit 8485bba8c0
5 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#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