← Expedia questions

Longest ordered subsequence of vowels

Filed under Expedia

Given a string consisting of lowercase English vowels, return the length of the longest subsequence containing all 5 vowels ('a', 'e', 'i', 'o', 'u') in alphabetical order. Return 0 if no valid…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Expedia questions

Collected from public candidate posts and coding forums. Updated Nov 2026.