• + 2 comments
    ABBA <- prefix and suffix with length 1 matches
    ABAA
    AABA
    BAAB
    BABB
    BBAB
    ABAB <- prefix and suffix with length 2 matches
    BABA <- same