Meta interview question

Technical Round: Coding Interview, Write a C program to check a string is palindrome or not

Interview Answer

Anonymous

24 Jun 2025

class Solution: def isPalindrome(self, s: str) -> bool: newStr = '' for c in s: if c.isalnum(): newStr += c.lower() return newStr == newStr[::-1]