It's easy to understand, when you turn the brackets into readable characters. o for opening bracket ( c for closing bracket )
So ()() would be ococ, which is coco backwards and clearly not a palindrome.
())( would be occo, which is a palindrome.
The brackets example is the one I use to drill into people's heads that it has nothing to do with visual symmetry
I guess to make it more relatable it could be better as
db db // db bd
My brain defaulted to assuming it was a programming reference
Meanwhile in my brain:
))<>((
back and forth.... forever
In my brain, "first one looks like boobs 👍"
Unintentional Goatse?
thanks, satan.
8 Comments
thedoginthewok@lemmy.world · 134 pts · 3y
It's easy to understand, when you turn the brackets into readable characters.
o for opening bracket (
c for closing bracket )
So ()() would be ococ, which is coco backwards and clearly not a palindrome.
())( would be occo, which is a palindrome.
nightdice@feddit.de · 47 pts · 3y
The brackets example is the one I use to drill into people's heads that it has nothing to do with visual symmetry
wolfpack86@lemmy.world · 20 pts · 3y
I guess to make it more relatable it could be better as
db db // db bd
My brain defaulted to assuming it was a programming reference
Mostly_Gristle@lemmy.world · 21 pts · 3y
Meanwhile in my brain:
))<>((
mich_iel@feddit.de · 11 pts · 3y
back and forth.... forever
Imgonnatrythis@lemmy.world · 2 pts · 3y
In my brain, "first one looks like boobs 👍"
SouthFresh@lemmy.ml · 1 pts · 3y
Unintentional Goatse?
kenoh@lemm.ee · 8 pts · 3y
thanks, satan.