Paypal, Asked in Online Asssessments USA on 4th November, 2022 | Vowels | Closest Numbers
PayPal · Question · Posted Nov 2022
Question 1 Vowels <problem>208</problem> Given a string array that contains n elements, each composed of lowercase English letters, and q queries, each query of the format -r, for each query, determine how many strings starting from index land ending at index r have vowels as the first and last character. Vowels are in (a,e,i,o,u). Example strArr " ('aba, bob', 'ecel aa: e) queries = ['1-3’ ,’2-5’,’2-2’] These strings represent two dash delimited integers / and r, the start ...
The full answer & interview discussion are available to premium members.
Log in Create a free account