Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- using namespace std;
- bool is_palindrome(const string& s) {
- for (int i=0; i< (s.size()/2); i++) if (s[i] != s[s.size()-1-i]) return false;
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment