C++20 sections · 1024 units
Open in Course

Problem - String Task

Transform and rebuild string

You're given a string. Your task: remove all vowels (A, E, I, O, U, Y and their lowercase versions), then insert a dot before each remaining consonant. Output the transformed string in lowercase.

This problem tests your ability to filter characters and rebuild a string. You'll need to check if each character is a vowel, skip it if so, otherwise add a dot followed by the lowercase consonant.

The challenge involves character classification and string building. Think about how you'd check if a character belongs to a specific set, then construct the output incrementally.