python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Why my code palindrome works only for single input not for many inputs?
A palindrome is a word or a phrase that is the same when read both forward and backward. Examples are: "bob," "sees," or "never odd or even" (ignoring spaces). Write a pr...
marcepan
Votes: 0
Answers: 5
Longest Common Palindromic Subtring
Does anyone know how to do this algorithm top-down with memoization?
My first intuition was to reduce this problem to Longest Common Substring, but check each substring and see if it's a palindrome. I...
Esteban Montelongo
Votes: 0
Answers: 0
How do I handle Palindrome with spaces in python?
I'm trying to check if a string is palindrome in python using deque. But the code below just checks a string with no space, how can I adjust it to a code which handles strings with spaces as well? e.g...
Shun
Votes: 0
Answers: 1
How to remove punctuation and capitalization in my palindrome assignment?
The problem is trying to use strings to prove whether a word or phrase is a palindrome.
def is_palindrome(input_string):
left = 0
right = len(input_string) - 1
while left < right:
...
Lillian Nove
Votes: 0
Answers: 1