s0005
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-11-02 17:32:58 +08:00
parent 50bf6b650b
commit 0b3383ad03
3 changed files with 197 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
#ifndef S0005_LONGEST_PALINDROMIC_SUBSTRING
#define S0005_LONGEST_PALINDROMIC_SUBSTRING
#include <string>
#include <algorithm>
#include <vector>
using namespace std;
class Solution1 {
public:
/**
* @brief Longest Palindromic Substring
*
* Given a string s, return the longest palindromic substring in s.
*
* @param s the given string
* @return longest palindromic substring
*/
string longestPalindrome(string s);
};
class Solution2 {
public:
/**
* @brief Longest Palindromic Substring
*
* Given a string s, return the longest palindromic substring in s.
*
* @param s the given string
* @return longest palindromic substring
*/
string longestPalindrome(string s);
};
#endif