Mail-Dubey, Suryansh (Contract X HackerRank Question - Vowels ← → C Chackerrank.com/test/eifsidn6q35/questions/1rtpsisre
Posted: Thu May 05, 2022 1:03 pm
solve in java 8
i dont have full question you will get on hackerrank please find there i am not able to find some problems please provide solution
Mail-Dubey, Suryansh (Contract X HackerRank Question - Vowels ← → C Chackerrank.com/test/eifsidn6q35/questions/1rtpsisre11 52m left BETA Can't read the text? Switch theme 3. Vowels ALL Ⓡ 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 / and ending at index r have vowels as the first and last character. Vowels are in (a,e,i,o,u). 1 2 Example strArr=['aba', 'bcb', 'ece', 'aa', 'e'] queries = ['1-3,2-5,2-2'] These strings represent two dash delimited integers / and r, the start and end indices of the interval, inclusive. Using 1-based indexing in the string array, the interval 1-3 contains two strings that start and end with a vowel: 'aba' and 'ece'. The interval 2-5 also has three. The third interval, from 2-2, the only element in the interval, 'bcb' does not begin and end with a vowel. The 3 4 5 Info C# A Autocomplete Disabled X 0: Line: 68 Col: 38 Run Tests Submit Run as Custom Input | Download ✓ V 44 } 45 46 } 47 foreach( string qry in query) 48 { 49 count=0; 50 51 string[] 1rStringArray= qry.Split('-'); 1= Int16.Parse(lrStringArray [0])-1; r= Int16.Parse(lrStringArray[1])-1; 52 53 Test Results Custom Input Run Code Compiled successfully. All available test cases passed Test case 0 Input (stdin) Test case 1 1 5 2 aab 3 a Test case 2 8 4 bcd 5 awe Test case 3 8 OF www. 12
i dont have full question you will get on hackerrank please find there i am not able to find some problems please provide solution
Mail-Dubey, Suryansh (Contract X HackerRank Question - Vowels ← → C Chackerrank.com/test/eifsidn6q35/questions/1rtpsisre11 52m left BETA Can't read the text? Switch theme 3. Vowels ALL Ⓡ 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 / and ending at index r have vowels as the first and last character. Vowels are in (a,e,i,o,u). 1 2 Example strArr=['aba', 'bcb', 'ece', 'aa', 'e'] queries = ['1-3,2-5,2-2'] These strings represent two dash delimited integers / and r, the start and end indices of the interval, inclusive. Using 1-based indexing in the string array, the interval 1-3 contains two strings that start and end with a vowel: 'aba' and 'ece'. The interval 2-5 also has three. The third interval, from 2-2, the only element in the interval, 'bcb' does not begin and end with a vowel. The 3 4 5 Info C# A Autocomplete Disabled X 0: Line: 68 Col: 38 Run Tests Submit Run as Custom Input | Download ✓ V 44 } 45 46 } 47 foreach( string qry in query) 48 { 49 count=0; 50 51 string[] 1rStringArray= qry.Split('-'); 1= Int16.Parse(lrStringArray [0])-1; r= Int16.Parse(lrStringArray[1])-1; 52 53 Test Results Custom Input Run Code Compiled successfully. All available test cases passed Test case 0 Input (stdin) Test case 1 1 5 2 aab 3 a Test case 2 8 4 bcd 5 awe Test case 3 8 OF www. 12