Well this problem would be trivial for only a single word palindromes (using two pointers one at each end). However if we're dealing with a sentence that might include punctuation, white-space and letters with diacritics or accents the problem becomes a little harder :)
Well this problem would be trivial for only a single word palindromes (using two pointers one at each end). However if we're dealing with a sentence that might include punctuation, white-space and letters with diacritics or accents the problem becomes a little harder :)
ReplyDelete