# Nagarro Interview Experience 2019| Pool Campus (Trainee, Technology)

• Difficulty Level : Medium
• Last Updated : 16 Oct, 2019

Round 1 (Day 1): In college

Consist of MCQs

60 min : General Aptitude + Quant + L.R. + Technical

Round 2 (Day 1):

Written coding round (3 questions in 75 mins)

1. Given a date in DD-MMM-YYYY format, you need to print the next date.

Input: Given date 13-JAN-1982

Output: 14-JAN-1982

1. Given 2 matrices. One big matrix(say, A) and one small matrix(say, B). You need to find out whether the smaller one matrix is the sub-matrix(part) of bigger matrix.

Input:

Matrix A= 1   2   3   4

5   6   7   8

9  10 11 12

13 14 15 16

Matrix B = 6   7    8

10 11 12

14 15 16

Output: YES

1. Reverse the string according to its words

Input: programming is fun

Output: fun is programming

Round 3 (Day 2): At Nagarro

Written coding round (3 questions in 75 mins)

1. You’re given a m x m matrix. Write a function to rotate submatrix within the matrix by 90degree clock wise. Function takes x and y as starting row and column coordinate of matrix and N as size of submatrix as argument.

Input:

1   2   3   4   5

6   7   8   9   10

11 12 13 14 15

16 17 18 19 20

Given x = 1, y = 1, N = 3

Output:

1   2   3   4   5

6   17  12 7 10

11 18 13  8 15

16 19 14  9 20

1. Given an integer Kand two arrays A1 and A2, the task is to return the total number of pairs (one element from A1 and one element from A2) having the sum such that the difference between K and sum is minimum.

A1[] = {5, 2, 7, 3, 6}

A2[] = {2, 1, 6, 9, 4}

K = 20

Ans: 7 from A1 and 9 from A2 since, 7+9=16 and K-16=4, which is minimum.

1. Given a string with some words, print the occurrence of each words.

Eg: ‘what do you do’

Ans: what=1, do=2, you=1

Suggestion: Try to attempt all 3 questions with minimal complexity. Even if you can’t write code, try to give the pseudocode.

Round 4 (Day 2):

Technical Interview

In this round they will check your Approach for every question. They will dry run your code and ask you to walk through your code and told them your approach. They will also ask you the complexities of each code and whether you can minimize the complexity or not. If you don’t code then atleast give them Pseudocode Logic for Optimized Approach.

But can ask some more questions from you if they are not satisfied or thought that you can’t explain any question correctly.

Note: They basically check your logic.

Round 5 (Day 2):

HR Interview