Wednesday, December 14, 2011

Check if a list of characters is palidrome

It would be easy to compare it if you have an array, some additional difficulties because you have a list. Not that much.

1 comment:

  1. 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