DEV Community

Discussion on: Meme Monday

Collapse
 
jon_snow789 profile image
Jon Snow

memes

Collapse
 
ben profile image
Ben Halpern

Ow, my brain.

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

You've crossed the line, brain! I'm getting the jar!

Collapse
 
aewens profile image
Austin Ewens

How is “()()” not a palindrome though? It’s read the same forwards and backwards, which is the definition of a palindrome 🤔🤨

Collapse
 
musfick profile image
Musfick Jamil

Before reverse
"()()"
After reverse
")()("
Result not palindrome

Before reverse
"())("
After reverse
"())("
Result palindrome

Thread Thread
 
thumbone profile image
Bernd Wechner • Edited

You trumped us there with a brilliant demonstration. Avoiding the trap some of us fell into of confusing palindrome with symmetric (same in a mirror). Some strings are both of course, like "MAAM" but not palindromes like "POP" which are not mirror symmetric at all and strings like "dib" which are mirror symmetric but not a palindrome!

So, kudos for your insight and clever demonstration.

Collapse
 
thumbone profile image
Bernd Wechner

And the other one does not. I call broken meme.

Thread Thread
 
musfick profile image
Musfick Jamil

No its palindrome