CodeBarn
8/3/2018 - 12:53 AM

Is Palindrome

Check if the given string is a palindrome

bool isPalidrome(string s) {
  return equal(s.begin(), next(s.begin(), s.size() / 2), s.rbegin());
}