Write a function to determine if a string is a palindrome.
Anonymous
bool palindrom(char* s, int length) { int l = 0; int r = length - 1; while (l < r) { if (s[l] != s[r]) return false; ++l; --r; } return true; }
Check out your Company Bowl for anonymous work chats.