Accenture 2024 - September | OA | String Parsing & Large Number Mathematics
Accenture · Question · Posted Jun 2026
Question 1: Words, Vowels and Consonants Problem Statement Given a sentence containing only uppercase/lowercase English alphabets and spaces, you have to precisely count the total number of words, vowels, and consonants. Input Format The first line of input contains T - number of test cases. It's followed by T lines, where each line contains a single sentence. Output Format For each test case, print the number of words, vowels, and consonants, separated by newline. Constraints 1 <= T <= 1000 ...
The full answer & interview discussion are available to premium members.
Log in Create a free account