leetcode/include/s0005_longest_palindromic_substring.hpp
Sainnhe Park 0b3383ad03
Some checks failed
continuous-integration/drone/push Build is failing
s0005
2022-11-02 17:32:58 +08:00

37 lines
730 B
C++

#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