Template Function ADS::longestPalindrome

Function Documentation

template<class S>
std::pair<std::size_t, std::size_t> ADS::longestPalindrome(const S &s)

where a longest palindromic substring of s starts and its length, the leftmost one among the longest; ( 0 , 0 ) for the empty s

Post:

s[ start .. start + length ) is a palindrome