1704. Determine if String Halves Are Alike
Description
Input: s = "book"
Output: true
Explanation: a = "bo" and b = "ok". a has 1 vowel and b has 1 vowel. Therefore, they are alike.Input: s = "textbook"
Output: false
Explanation: a = "text" and b = "book". a has 1 vowel whereas b has 2. Therefore, they are not alike.
Notice that the vowel o is counted twice.Tags
Solution
Complexity
Code
Previous1640. Check Array Formation Through ConcatenationNext1707. Maximum XOR With an Element From Array
Last updated