Given a string strstr, check if its a palindrome. Consider it to be case insensitive. A palindrome string is a sequence of characters that reads the same forwards and backwards. If strstr is found to be a palindrome, print It is a palindrome else print It is not a palindrome The code stub provided here is to be used. It calls the function palindrome(). Your task is to complete the function.
Input:
First line will contain TT, number of testcases. Then the testcases follow.
Each testcase contains a single string strstr
Output:
For each testcase, print the output on new line
Constraints
1≤T≤251≤T≤25
2≤length(str)≤1002≤length(str)≤100
strstr may contain alphanumeric characters
Subtasks
Subtask #1 (30 points): T≤5T≤5 and length(str)≤70length(str)≤70 Subtask #2 (70 points): original constraints
Sample Input:
3 AhheioIehHA OeaiensneIaIeO wieowppwoeiw
Sample Output:
It is a palindrome It is not a palindrome It is a palindrome
Explanation:
The first test case is considered a palindrome since it reads the same forwards or backwards. The capital and lowercase version of the same is considered equivalent as it is mentioned to be case insensitive. The second test case is not a palindrome since its third character does not match the third character from back. The third test case is again a palindrome.
This chat is not your "task solver". You MUST solve it by yourself.
Не может же быть такого, что эту связку на винде руками поставить невозможно
Ну, я таки не осилил. Не могу сказать, что сильно упирался, тем не менее не осилил. По этой причине, луароксом не пользуюсь. Мне не сильно и надо (зелен виноград, ага).
Ну, я таки не осилил. Не могу сказать, что сильно упирался, тем не менее не осилил. По этой причине, луароксом не пользуюсь. Мне не сильно и надо (зелен виноград, ага).