my brain hurts - eviltoast
  • thedoginthewok@lemmy.world
    link
    fedilink
    English
    arrow-up
    129
    ·
    1 year ago

    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.