• @[email protected]
    link
    fedilink
    English
    1292 years 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.

  • NightDice
    link
    fedilink
    English
    472 years ago

    The brackets example is the one I use to drill into people’s heads that it has nothing to do with visual symmetry

    • @[email protected]
      link
      fedilink
      English
      20
      edit-2
      2 years ago

      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