I know that we're not supposed to post code if they have no coding but I'm doing an exercise which starts with checking if the word's a palindrom.
My coding works but I was wondering if there's a more effective way.
For the ts: my reasoning for this solution was this:
-for a palindrom the first and last letter, second and the letter before the last, ... must be the same.
-a string is an array of characters so I could just compare them.
And for the lower case take a look at the cctype library it contains the function you need for the lowercase ;)