So I have a code that counts the amount of words But I need it to count palindrome words times instead of one For example, "Kids love doing gag. Gag ...
So I have a code that counts the amount of words But I need it to count palindrome words times instead of one For example, "Kids love doing gag. Gag ...
The function should check if an input string is a palindrome. It should not be case sensitive, and must ignore every other character except letters an ...
I am wondering how to write a small java method which allows the user to enter a sentence and the program will return all of the palindromes in the se ...
There's no end to the leetcode questions about finding palindrome pairs and how to determine if a given string is a palindrome, but I can't seen to fi ...
How to check if a number is palindrome number or not and if it is, follow with checking if it is a prime number too. How to check if a number is pali ...
Here is the code: class Solution: def isPalindrome(self, x: int) -> bool: if str(x) == reversed(str(x)): return True ...
I tried to execute this code on the words "kayak" and "deed". It is showing index error for both of them. What is the problem here? Can someone help ...
I am trying to make a palindrome checker with the condition of having to use a while loop. It's giving me a right headache! it returns isPalindrome as ...
I have seen previous solutions to this problem, but it is all complete search with a check function and not fast enough for me. I am working on a C++ ...
I'm new to scheme and stuck on this problem: Input list = (a b c) output = (a b c c b a ) Trying to use (reverse) and got the reversed list , but ha ...
I have a problem question and a snippet code below. The snippet is filled already because I found out the solution but I do not understand why it is l ...
I have this code to check for a palindrome in C: But I am getting this error: Segmentation fault (core dumped) Why is this? ...
I have to write a function to check for palindromes in sentences and words. For sentences it looks like this (and works): for word palindromes it ...
I'm trying to solve a question where your code is supposed to determine if a given number is a palindrome or not, and I don't understand why it isn't ...
I wish to learn more about the rev_string I tried to see if "MOM" is a palindrome and I wanted the result to be yes/no ...
I seperated the funcitons the reverse the list, find its length, and find if it it's palindrome. Here is my code I have been trying to solve the pr ...
My regex should accept every palindrome for word length from 2 to 7 letters (without whitespaces). My regex looks like this: Can you explain to me ...
Given the following Leetcode challenge, Leet code challenge I have 2 questions: 1- I am confused about head =[1,2,3,4] in the question. To me, this ...
I created a recursive solution to the issue but the biggest bug is that it doesn't recognize that a small palindrome sandwiched with other characters ...
I am attempting to solve a generic Palindrome problem recursively. However, it seems that my algorithm is only evaluating the first recursive call, no ...