79670098

Date: 2025-06-18 06:17:03
Score: 1.5
Natty:
Report link

I am solving one DSA question I want extract character only to check whether given sentence is Palindrome or not, so I want to remove spaces and other punctuations following code is useful for it.

string str1;
        for(char c : str)
        {
            if(isalnum(c))
            {
                str1+=tolower(c);
            }
        }
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Prajwal Thorat