Nagarro Software Pvt. Ltd. came for pool campus drive. There were two rounds.
First round had two sections technical (20 Minute) and aptitude (40 Minute) of one hour.
In Technical Section we have 20 single choice objective programming question from Basics of C Programming Language. Questions are quite easy. Some of them needs to select correct output of given program and some need to select correct program for given output in question.
In aptitude section we have 40 single choice questions. Questions are typical from Math and Logical Reasoning.
Second round had three subjective Programming questions.
Q1. Write a Program to print the given matrix in wave like form.
Input Matrix: - 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Output :- 0 5 10 15 16 11 6 1 2 7 12 17 18 13 8 3 4 9 14 19
Q2. Write a Function to check if the given string contains the given number of unique characters (You should ignore case of character so ‘R’ & ‘r’ should be counted as same character.).
Input :- String : “NagarroisBestSoftwareCompany”. N = 17 Output :- True or False
Q3. Write a Function to find the Increasing Subsequence whose sum is highest in which each number is greater than previous by one in the given array. If the difference is less than or greater than one then it is not considered as subsequence. Print the subsequence array and sum of the subsequence array. Time complexity of program must be O(n).
Input array :- 1 , 2 , 3 , 4 , 5 , 3 , 4 , 5 , 6 , 7 , 9 , 10 , 11 , 12 , 8 , 9 , 10 , 21 , 35 , 36 , 37 , 22
Output :- Longest Subsequence : 35,36,37
Sum = 108
I think result is not declared yet or I didn’t clear because I didn’t get any mail from them till date.
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course. In case you are prepared, test your skills using TCS, Wipro, Amazon and Microsoft Test Serieses.