- Author
- Leandro Rabindranath Leon
# include <iostream>
# include <string>
{
const std::string text = "forgeeksskeegfor";
const auto r = manacher(text);
std::cout << "Manacher Example\n";
std::cout << "Text: " << text << "\n";
std::cout <<
"Longest palindrome: " <<
r.longest_palindrome <<
"\n";
std::cout <<
"Begin index: " <<
r.longest_begin
<<
", length: " <<
r.longest_length <<
"\n";
return 0;
}
Palindrome algorithms over strings.
Main namespace for Aleph-w library functions.