Palindrome examples
A palindrome is based on characters and digits not on words. So here are some examples of palindromes:
dad
a man a plan a canal, Panama
madam I'm Adam
peep
Notice that palindromes with odd numbers of characters have a letter in the middle which is not balanced. Palindromes with even numbers of characters do not have a character in the middle.
dad
a man a plan a canal, Panama
madam I'm Adam
peep
Notice that palindromes with odd numbers of characters have a letter in the middle which is not balanced. Palindromes with even numbers of characters do not have a character in the middle.
1
person likes this idea
I like this idea!
Tell me when this idea gets some attention.
The more people who like this idea, the more it gets noticed.
The more people who like this idea, the more it gets noticed.
The best point from the company
-
Let's see. I don't want to impose too great of a programming burden on you guys, but I also don't want degenerate cases of computer codes, or something like that, qualifying as palindromes.
So, let's say that for our purposes, palindromes can contain [a-zA-Z0-9] and must contain at least 3 letters. So 111111 doesn't count by 111abba111 does count.
Any punctuation, tags and spaces should be removed before calculating palindromes. So a palindrome can subsequently start in the middle of a word.
If this definition is generating bad examples, then post some examples of degenerate, but long, palindromes, if you find any, and we can qualify the definition some more.
The company thinks
this is one of the best points
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?does a palindrome have to start at the beginning of a word?
For example in the text:
abcde edcb
is the following a valid palindrome?
bcde edcb -
Inappropriate?As you said A palindrome is based on characters and digits, is "757575757575757" a valid palindrome?
How about special character that is not digit or letter [a-zA-Z], should I discard as ' in the example above or not?
for example:
AM:PM" "AM:PM" (a
918 1918-19
1 +1 +1 -1 +1 +1 +1 -1 +1 -
Inappropriate?Let's see. I don't want to impose too great of a programming burden on you guys, but I also don't want degenerate cases of computer codes, or something like that, qualifying as palindromes.
So, let's say that for our purposes, palindromes can contain [a-zA-Z0-9] and must contain at least 3 letters. So 111111 doesn't count by 111abba111 does count.
Any punctuation, tags and spaces should be removed before calculating palindromes. So a palindrome can subsequently start in the middle of a word.
If this definition is generating bad examples, then post some examples of degenerate, but long, palindromes, if you find any, and we can qualify the definition some more.
The company thinks
this is one of the best points
-
Inappropriate?I found the palindrome:
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
on
http://en.wikipedia.org/wiki/Pendulum
Obviously, there is a mistake in the references on that page.
This palindrome is consistent with your specs. We may think about modifying the constraint to "must contain at least three different letters". I am indifferent to whether the above palindrome is acceptable or not.
What do you think? -
It was a vandalism that is deleted from the page now. I also think we should make it 3 different characters, otherwise lots of similar vandalism would be detected as palindrome. -
If those are upside-down exclamation points, they don't fit in the requirement that the palindrome be made of characters [a-zA-Z0-9]
Is that what they are, or is there some wierd unicode thing happening? -
Inappropriate?I found a funny palindrome in page http://en.wikipedia.org/wiki/Tom_Leykis
"soidutS tnuomaraP" (Paramount Studios, -
that's a good one!
Loading Profile...


EMPLOYEE
