[AtCoder] B - 特別賞Read more
[AtCoder] C - AtColorRead more
[AtCoder] F - 100個の円Read more
[AtCoder] C - 錬金術士Read more
[Codeforces] Round #431 (Div. 2) B. Tell Your WorldRead more
[Codeforces] Russian Code Cup 2017 - Finals [Unofficial Mirror, Div. 1 Only Recommended, Teams Allowed] A. Set TheoryRead more
[Codeforces] Технокубок 2018 - Отборочный Раунд 1 D. Polycarp`s phone bookRead more
[Codeforces] Educational Round 30 C. Strange Game On MatrixRead more
[Codeforces] Round #442 (Div. 2) C. Slava and tanksRead more
[LeetCode] Determine if String Halves Are Alike

1704. Determine if String Halves Are Alike

You are given a string s of even length. Split this string into two halves of equal lengths, and let a be the first half and b be the second half.

Two strings are alike if they have the same number of vowels (‘a’, ‘e’, ‘i’, ‘o’, ‘u’, ‘A’, ‘E’, ‘I’, ‘O’, ‘U’). Notice that s contains uppercase and lowercase letters.

Return true if a and b are alike. Otherwise, return false.

Read more