World’s longest palindrome?
pinchofintelligence.com
pinchofintelligence.com
For any N "See [banana,]* bees." can be longer than N.
PS I converted this into three palindromic tweets https://twitter.com/sep332/status/928484353310711808
Am I misunderstanding the level of coherence of the text? If the requirements are that loose, it seems it would be trivial to generate a 'palindrome' of arbitrary length.
"A man, a plan, a canal-- [you should book a trip to] Panama[, a country whose history is summed up by this witty list of things]!"
What I'd like to see is a version where instead of optimizing just for length, the palindrome is optimized for noun-phrases that genuinely have legit connections to Panama (as the brilliant original, "a plan, a man, a canal", does).
[0] https://raw.githubusercontent.com/rmeertens/palindromes/mast... [1] https://github.com/rmeertens/palindromes
It's questionable what that other junk has to do with Panama. But grammatically, the structure is the same.
()()
is not a palindrome, but ())(
is. It's obvious, sure, but it still doesn't look right.Then we have
1010
and 1001You'll find that according to most dictionaries, ()() is the palindrome here.
Unless you're a robot.
()() --> abab
())( --> abba
)(() --> baab
We coders could get fooled by this question if we dont pay much attention
You can repeat this indefinitely.
[1] https://www.livescience.com/33583-palindrome-dates-21st-cent...
But yes, YYYY-MM-DD all the way. It's indispensable to me when sorting file names by date.
(twelve plus one) is an anagram of (eleven plus two)
I guess that should be called a mathagram?
It's not a palindrome, but is a semi-sensical song masterfully composed entirely out of palindromes (which also does a great job poking fun at Bob Dylan).
"Nelli plaatst op n parterretrap n pot staalpillen."
The 'n's are a bit of an issue though, 'n in dutch means 'een', but reversed that doesn't work so the 'e's got dropped and replaced by "'" but they move from one side of the n's to the other in the reversal.
We didn’t require any specific time or space complexity. If the candidate whipped out a suboptimal solution quickly and correctly and time permitted we might ask them about that though and how it might be improved. The purpose of the question is not to see if the candidate has memorized the answer or sees a trick, it’s so they can demonstrate basic proficiency and systematic reasoning.
I upvoted your comment to make it up for you...hope you have a good one...
At parts it discusses the mysterious missing letter (E is not know) like threeve, the integer between 3 and 4.
examples of valid date formats are: yyyy-mm-dd dd-mm-yyyy
koortsmeetsysteemstrook
1: Are the same forwards and backwards
2: Make coherent sense
Still pretty cool nonetheless, I suppose
I know a fat man called Ella C Namtafawnoki.
I got hang of fog nah togi.
https://juliagalef.com/2017/02/21/a-poem-for-douglas-hofstad...
Racecar