#10

User-Generated Content Reporting

EASYStringPYTHON

Problem Description

A content moderation pipeline filters messages from a social platform before routing them for review. Given an array of strings `messages`, count how many messages satisfy both of the following criteria: the message has an odd character length AND it contains at least one vowel (uppercase or lowercase `a`, `e`, `i`, `o`, `u`). Return the count. **Input:** `messages` — a list of strings. **Output:** An integer — the count of messages satisfying both the odd-length and vowel-presence conditions.

Topics

arrayset

Asked at Companies

bytedance

Solve This Problem

Sign up to access the interactive code editor, run test cases, view the editorial, and get AI-powered feedback on your solution.

Start Solving →