It looks very weird, but if you put it like abab vs abba, it makes more sense
bdbd is not a palindrome but bddb is
I hate it
bddb is my favorite word to pronounce
do you have to say it while flipping your finger up and down over your lips?
I think you just hacked my modem
Is it pronounced like that Super Troopers Porsche song?
This is much easier to parse for me than the one in the post. Interesting. I guess letters are easier to abstract
"()()" is an ambigram, which wikipedia describes as "visual palindromes", for whatever that's worth.
WIKIPEDIA CAN SHOW GIFS?!
I love that the word ambigram can be made to look as an ambigram whereas palindrome - wtf, could have done so much better with naming that guys.
hippopotomonstrosesquipedaliophobia (Fear of long words) was clearly not defined by anyone suffering from the phobia either.
Well that's just mean.
This is an unacceptable glitch in the universe.
It's time to reboot it with a patch.
Let us substitute: ( - x, ) - y
Thus ()() becomes xyxy
())( becomes xyyx
Now clearly it can be seen, even while high, that the second one is and the first isn’t
for those too lazy to google,
palindrome /păl′ĭn-drōm″/
noun
A word, verse, or sentence, that is the same when read backward or forward.
"madam; Hannah; or Lewd did I live, & evil I did dwel."
() () backwards is )( )(
() )( backwards is () )(
This has ruined my day.
this took me a while but after converting to ascii in hex I get it
"())(" = 40 41 41 40
"()()" = 40 41 40 41
As long your strings aren't null terminated
As long your strings aren’t null terminated
What kind of monstrous bug prone language would do that?
What about ⊂((・▽・))⊃
⊃))・▽・((⊂
(╯°□°)╯︵ ┻━┻
┻━┻ ︵╯)°□°╯(
Why would you do this to me 😭
Oh god, please no 😄
1212 isn't a palindrome, but 1221 is.
Had to take a break and come back later before it made sense.
That's horrible and horrifying and I'm never gonna sleep again and also I hate you :(
Calm down, everyone. Brackets form a tree structure, and can be represented by a free magma, while strings with concatenation are equivalent to a free monoid. You're essentially asking for the two respective common involutory operations to be connected by this map, just because they're involutory, which put that way is a wild guess at best. In fact, reversing this string produces something outside the range of the map entirely, which is injective and so can't be surjective for combinatorical reasons.
... Yeah I might be the only person that finds that useful.
I'm not saying I was having a good day before, but this made it that lil bit worse.
Thank you for letting me hate it as well.
Yes it does bother me a little that the letters in the latter half of my username can't be written backwards. (Well, some can, and the p can become a q, but then it's not a p any more.)
Wild stuff.
Best palindrome I ever come across is boob. I heard Jimmy Carr say it, but he could be repeating somebody else's joke.
dood
Stupid brain, filling in the gaps when I didn't even want it to...
What about ))-((
The reverse would be ((-))
Wouldn't it be ()-)( as a palindrome?
That's a palindrome because the reverse is the same. The comment above you shows that the one above isn't a palindrome since the reverse is different, not showing a palindrome
Yeah I realized
fuck that was unexpected
A palindrome is about symbols. Not the visual representation of those symbols.
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics