You are viewing a single comment's thread. Return to all comments →
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.
Two Characters
You are viewing a single comment's thread. Return to all comments →
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.