Palindrome Checker
C
Easy
4 views
Problem Description
Check if a string is a palindrome. Case-insensitive and ignore spaces. Example: "a man a plan a canal Panama" is a valid palindrome.
Official Solution
#include <stdio.h>
#include <ctype.h>
int main() {
char str[200];
int left = 0, right = 0;
int isPalindrome = 1;
printf("Enter a string: ");
fgets(str, sizeof(str), stdin);
// Find length
while (str[right] != '