• damium@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 months ago

    You can also use o1e as there are never more than a single shared character. It also doesn’t change the string size so it can be done in place. Still an ugly hack of a solution.