Nagarro Software interview experience Real time questions & tips from candidates to crack your interview

Trainee Technology

Nagarro Software
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data structures , OOPS , OS , DBMS , Projects
Tip
Tip

Tip 1 : Practice array,strings and recursion well.
Tip 2 : Have atleast 2 projects.

Application process
Where: Other
Eligibility: no criteria
Resume Tip
Resume tip

Tip 1 : Keep Resume clean.
Tip 2 : Mention only project/technologies that you are comfortable with.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration150 Minutes
Interview date24 May 2022
Coding problem3

MCQ round was from 10 to 11 .
Coding round was from 11 to 12:30

1. Segregate Odd-Even

Moderate
25m average time
75% success
0/80
Asked in companies
AdobeLivekeeping (An IndiaMART Company)Thought Works

There is a wedding ceremony at NinjaLand. The bride and groom want everybody to play a game and thus, they have blindfolded the attendees. The people from the bride’s side are holding odd numbers and people from the groom’s side are holding the even numbers. For the game to start quickly, all the bride’s side people should come first, followed by the groom’s side people in the same order.

The attendees of the wedding with their numbers are given in the form of a Singly Linked List, arranged randomly.

A singly linked list is a type of linked list that is unidirectional; that is, it can be traversed in only one direction from head to the last node (tail).

Example:
The attendees holding numbers from 1, 4, 3 are shown: 

As the organizers are busy, you have to arrange all the people by arranging the bride’s side people first followed by the groom’s side people sequentially.

Note:
For the above example 1 -> 4 -> 3, 1 -> 3 -> 4 is the only correct answer, i.e nodes should be grouped sequentially. Hence, 3 -> 1 -> 4 is the wrong answer as we have to preserve the same order.
Problem approach

Iterate through the array
Used two arraylist to store odd and even separately
add odd and even back to array

Try solving now

2. Count derangements

Moderate
25m average time
75% success
0/80
Asked in companies
MicrosoftMAQ SoftwareLTI - Larsen & Toubro Infotech

Given a number ‘N', the task is to find the total number of derangements of a set of ‘N’ elements.

A ‘Derangement’ is a permutation of 'N' elements, such that no element appears in its original position. For example, a derangement of {0, 1, 2, 3} is {2, 3, 1, 0}.

For example, 'N' = 2 , {0, 1} and {1, 0} are the only derangement therefore output will be 1.

Problem approach

There are n – 1 way for element 0 
Let 0 be placed at index i. There are now two possibilities, depending on whether or not element i is placed at 0 in return. 

i is placed at 0: This case is equivalent to solving the problem for n-2 elements as two elements have just swapped their positions.
i is not placed at 0: This case is equivalent to solving the problem for n-1 elements as now there are n-1 elements, n-1 positions and every element has n-2 choices

relation -count(n)=(n-1)*{count(n-1)+count(n-2)}

Try solving now

3. Smallest Window

Moderate
10m average time
90% success
0/80
Asked in companies
HSBCSAP LabsExpedia Group

You are given two strings S and X containing random characters. Your task is to find the smallest substring in S which contains all the characters present in X.

Example:

Let S = “abdd” and X = “bd”.

The windows in S which contain all the characters in X are: 'abdd', 'abd', 'bdd', 'bd'. 
Out of these, the smallest substring in S which contains all the characters present in X is 'bd'. 
All the other substring have a length larger than 'bd'.
Problem approach

First check if the length of the string is less than the length of the given pattern, if yes then “no such window can exist “.
Store the occurrence of characters of the given pattern in a hash_pat[].
we will be using two pointer technique basically
Start matching the characters of pattern with the characters of string i.e. increment count if a character matches.
Check if (count == length of pattern ) this means a window is found.
If such a window found, try to minimize it by removing extra characters from the beginning of the current window.
delete one character from first and again find this deleted key at right, once found apply step 5 .
Update min_length.
Print the minimum length window.

Try solving now
02
Round
Easy
Video Call
Duration30 minutes
Interview date28 May 2022
Coding problem1

It was from 3pm to 3:30pm

1. Trapping Rain Water

Moderate
15m average time
80% success
0/80
Asked in companies
HCL TechnologiesCiti BankAtlassian

You have been given a long type array/list 'arr’ of size 'n’.


It represents an elevation map wherein 'arr[i]’ denotes the elevation of the 'ith' bar.



Note :
The width of each bar is the same and is equal to 1.
Example:
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].

Output: 10

Explanation: Refer to the image for better comprehension:

Alt Text

Note :
You don't need to print anything. It has already been taken care of. Just implement the given function.
Problem approach

brute force
For each element in the array, we find the maximum level of water it can trap after the rain, which is equal to the minimum of maximum height of bars on both the sides minus its own height
optimised
Find maximum height of bar from the left end upto an index i in the array left_max.
Find maximum height of bar from the right end upto an index i in the array right_max.
Iterate over the \text{height}height array and update ans

Try solving now
03
Round
Easy
HR Round
Duration15 minutes
Interview date31 May 2021
Coding problem1

It was from 10 am

1. Basic HR Questions

What was your jee rank
Why you use java
what are your strength and weakness
Why do you want to join nagarro

Problem approach

Tip 1 : Answer all questions confidently
Tip 2 : Research about company beforehand

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
Trainee Technology
4 rounds | 9 problems
Interviewed by Nagarro Software
1495 views
0 comments
0 upvotes
company logo
Trainee Technology
4 rounds | 7 problems
Interviewed by Nagarro Software
986 views
0 comments
0 upvotes
company logo
Trainee Technology
3 rounds | 4 problems
Interviewed by Nagarro Software
2749 views
0 comments
0 upvotes
company logo
Trainee Technology
3 rounds | 6 problems
Interviewed by Nagarro Software
3763 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Trainee Technology
2 rounds | 4 problems
Interviewed by HCL Technologies
4886 views
0 comments
0 upvotes