Algorithm · PayPal · Medium
A password similarity checker used by HackerRank considers a password similar when it contains exactly as many vowels as consonants. All passwords are made up exclusively of lowercase English letters. The vowels are defined as the set {'a', 'e', 'i', 'o', 'u'}; every other letter is a consonant. To evaluate how resistant a password is to cracking, you are allowed to modify it through a series of operations. A single operation consists of picking one character and shifting it…
Checking your access…