Tap here to switch tabs
Problem
Submissions

Problem: Vowels of All Substrings

Try to solve the Vowels of All Substrings problem.

Statement

Given a string word, return the total count of vowels ('a', 'e', 'i', 'o', and 'u') across all substrings of word.

Note: A substring is a contiguous non empty sequence of characters within a string.

Constraints:

  • 1≤1 \leq word.length ≤105\leq 10^5

  • word consists of lowercase English letters.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Vowels of All Substrings

Try to solve the Vowels of All Substrings problem.

Statement

Given a string word, return the total count of vowels ('a', 'e', 'i', 'o', and 'u') across all substrings of word.

Note: A substring is a contiguous non empty sequence of characters within a string.

Constraints:

  • 1≤1 \leq word.length ≤105\leq 10^5

  • word consists of lowercase English letters.