Given a lowercase string s, consider every substring that starts with a vowel (a, e, i, o, u) and ends with a consonant. Return the alphabetically (lexicographically) smallest and largest such…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.