Questions about palindromes
What about punctuation on palindromes?
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The best answers from the company
-
There isn't meant to be something that you can implement in your program.
Instead print out the top few palindromes and the associated URLs and manually check to ensure that it isn't a page that is about palindromes in specific.
Because it would be dumb to find that the longest palindrome in wikipedia is on the page about palindromes.
The company says
this answers the question
-
punction and spaces should not be included.
Length should be just the characters that are palindromic.
The company says
this answers the question
-
For palindromes, punction shouldn't matter. Palindroms just shouldn't span html tags. So for example, the following are valid palindromes:
A man. A plan. A canal. Panama.
Gooday, Madam. I'm Adam Yaddoog.
Ah, Satan sees natasha.
"Nurses run!" says sick Cissy as nurses run.
The company says
this answers the question
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?For palindromes, punction shouldn't matter. Palindroms just shouldn't span html tags. So for example, the following are valid palindromes:
A man. A plan. A canal. Panama.
Gooday, Madam. I'm Adam Yaddoog.
Ah, Satan sees natasha.
"Nurses run!" says sick Cissy as nurses run.
The company says
this answers the question
-
Inappropriate?We've run into an interesting dilemma for returning palindromes. Since spaces are not included in the palindrome, they are not checked in our isPalindrome method. They are typically included in the palindrome String that is returned by our findPalindrome method.
So, the question is, should the length of the palindrome only include letters and numbers, or should punctuation and spaces be included as well?
Example: "madamiamadam" vs ". madam I am Adam! " Notice the period that occurs before madam in the second choice.
-
Inappropriate?punction and spaces should not be included.
Length should be just the characters that are palindromic.
The company says
this answers the question
-
Inappropriate?What is the definition of "...a page that is not about palindromes?" Would that be any page that has the word "palindrome" anywhere in the text (body or title), or just in the page title?
-
Inappropriate?There isn't meant to be something that you can implement in your program.
Instead print out the top few palindromes and the associated URLs and manually check to ensure that it isn't a page that is about palindromes in specific.
Because it would be dumb to find that the longest palindrome in wikipedia is on the page about palindromes.
The company says
this answers the question
Loading Profile...


EMPLOYEE
