Search
⌘K

Remove Bad Pairs from a String

Remove bad pairs from a string. A bad pair is defined as adjacent characters that are the same letter in different cases (e.g., 'xX'). Implement a solution to remove these bad pairs.

Asked at:

Google

Google


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid January, 2025

Google

Google

Mid-level

Remove bad pairs from a string. A bad pair is defined as adjacent characters that are the same letter in different cases (e.g., 'xX'). Implement a solution to remove these bad pairs.

Comments

Your account is free and you can post anonymously if you choose.