[AtCoder] C - Not so DiverseRead more
[AtCoder] D - FT RobotRead more
[AtCoder] C - Good SequenceRead more
[AtCoder] B - Two AnagramsRead more
[Codeforces] Beta Round #30 (Codeforces format) A. AccountingRead more
[Codeforces] School Personal Contest #1 (Winter Computer School 2010/11) - Codeforces Beta Round #38 (ACM-ICPC Rules) C. BlindsRead more
[Codeforces] Beta Round #40 (Div. 2) B. Martian DollarRead more
[Codeforces] Beta Round #41 A. Guilty — to the kitchen!Read more
[Codeforces] School Team Contest #2 (Winter Computer School 2010/11) E. Anfisa the MonkeyRead more
[LeetCode] Vowels of All Substrings

2063. Vowels of All Substrings

Given a string word, return the sum of the number of vowels (‘a’, ‘e’, ‘i’, ‘o’, and ‘u’) in every substring of word.

A substring is a contiguous (non-empty) sequence of characters within a string.

Note: Due to the large constraints, the answer may not fit in a signed 32-bit integer. Please be careful during the calculations.

Read more