Write a function to check if a string is a palindrome or not
Anonymous
In cpp bool isPalindrome(string s){ int r = s.length() - 1, l = 0; while (l < r){ if(s[l] != s[r]){ return False; } l++; r--; } }
Check out your Company Bowl for anonymous work chats.