• + 1 comment

    Strings that should cause a 0 output:

    aaaabbbbcccc

    aaaabababbbb

    cccccccccccc

    If the string does not have some pair of letters that alternate with each other when you ignore all other letters in the string, it should output 0.