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

Associate Software Developer

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

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Dynamic Programming, Array, String, Binary Tree, Searching and sorting
Tip
Tip

Tip 1 : Atleast 250 DSA Question 
Tip 2 : Prepare atleast 2 project on any technology and you should know each and every thing regarding your project.
Tip 3 : Must have Good english communication skill

Application process
Where: Campus
Eligibility: 6 CGPA+
Resume Tip
Resume tip

Tip 1 : Must be in One page 
Tip 2 : At least 2 project on Resume with their link.

Interview rounds

01
Round
Medium
Online Coding Test
Duration90 minutes
Interview date28 Aug 2021
Coding problem3

11:00 am to 12:30pm

1. Minimize The Difference

Easy
20m average time
70% success
0/40
Asked in companies
IntuitNagarro SoftwareFlipkart limited

You are given an array ‘A’ of length ‘N’ consisting only of positive integers and an integer ‘K’. You have to update every element of the array by increasing or decreasing its value by ‘K’ only once. Your task is to minimize the difference between maximum and minimum elements of the array after performing the increment or decrement on every element of the array.

Note: After the operation, every value of the array should remain non-negative.

For example:

Let’s say the array ‘A’ = [1, 2, 3, 4, 5] and ‘K’ = 2, then after increasing each element by ‘K’. The array ‘A’ will become [3, 4, 5, 6, 7]. So the maximum - minimum will be 7 - 3 = 4. 
Try solving now

2. Subset Sum Equal To K

Moderate
30m average time
65% success
0/80
Asked in companies
AmazonDunzoDeutsche Bank

You are given an array/list ‘ARR’ of ‘N’ positive integers and an integer ‘K’. Your task is to check if there exists a subset in ‘ARR’ with a sum equal to ‘K’.

Note: Return true if there exists a subset with sum equal to ‘K’. Otherwise, return false.

For Example :
If ‘ARR’ is {1,2,3,4} and ‘K’ = 4, then there exists 2 subsets with sum = 4. These are {1,3} and {4}. Hence, return true.
Problem approach

recursion-
we will consider two cases. 

Consider the last element and now the required sum = target sum – value of ‘last’ element and number of elements = total elements – 1
Leave the ‘last’ element and now the required sum = target sum and number of elements = total elements – 1

Try solving now

3. Subsequences of String

Moderate
15m average time
85% success
0/80
Asked in companies
QuikrShareChatAmazon

You are given a string 'STR' containing lowercase English letters from a to z inclusive. Your task is to find all non-empty possible subsequences of 'STR'.

A Subsequence of a string is the one which is generated by deleting 0 or more letters from the string and keeping the rest of the letters in the same order.
Problem approach

Step 1 : Iterate over the entire String
Step 2 : Iterate from the end of string 
in order to generate different substring
add the substring to the list
Step 3 : Drop kth character from the substring obtained 
from above to generate different subsequence.
Step 4 : if the subsequence is not in the list then recur.

Try solving now
02
Round
Easy
Online Coding Interview
Duration50 minutes
Interview date5 Sep 2021
Coding problem3

3 DSA Question + Project Explanation

1. Distance between two nodes of a Tree

Moderate
25m average time
60% success
0/80
Asked in companies
PhilipsSAP LabsPhonePe

Given a binary tree and the value of two nodes, find the distance between the given two nodes of the Binary Tree.

Distance between two nodes is defined as the minimum number of edges in the path from one node to another.

Problem approach

Dist(n1, n2) = Dist(root, n1) + Dist(root, n2) - 2*Dist(root, lca) 
'n1' and 'n2' are the two given keys
'root' is root of given Binary Tree.
'lca' is lowest common ancestor of n1 and n2
Dist(n1, n2) is the distance between n1 and n2.

Try solving now

2. 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

Intuition: The basic intuition of the problem is as follows:

An element of the array can store water if there are higher bars on the left and the right. 
The amount of water to be stored in every position can be found by finding the heights of bars on the left and right sides. 
The total amount of water stored is the summation of the water stored in each index.

Try solving now

3. Minimum Number Of Swaps For Bracket Balancing

Moderate
15m average time
85% success
0/80
Asked in companies
OlaUnthinkable SolutionsNagarro Software

Ninja and his friend are playing a game in which his friend picks N opening brackets ‘(‘ and N closing brackets ‘)’. He then mixes all of them randomly and generates a string 'BRACKETS'. He asks Ninja to balance ‘BRACKETS’.

Example:
Here are some examples of balanced BRACKETS "(())", "()()", "(())()".

Ninja can perform the following operation to balance BRACKETS. In one operation, Ninja can pick two adjacent brackets and swap them. His friend challenges him to accomplish the task in minimum possible operations. Ninja needs your help to do this.

Can you help Ninja to make the string ‘BRACKETS’ balanced in minimum possible swaps?

Problem approach

We can solve this problem by using greedy strategies. If the first X characters form a balanced string, we can neglect these characters and continue on. If we encounter a ‘]’ before the required ‘[‘, then we must start swapping elements to balance the string.

Try solving now
03
Round
Easy
HR Round
Duration15 minutes
Interview date13 Sep 2021
Coding problem1

4 easy Question.

1. Basic HR Questions

Tell me about yourself.

Tell me about your project.

What are your hobbies?

What are your favourite places to visit?

Problem approach

Tip 1 : Know about your project
Tip 2 : Good communication skill

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
CSD
2 rounds | 3 problems
Interviewed by Nagarro Software
1379 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Nagarro Software
936 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Nagarro Software
1221 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Nagarro Software
758 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Associate Software Developer
5 rounds | 10 problems
Interviewed by SAP Labs
1239 views
0 comments
0 upvotes
company logo
Associate Software Developer
3 rounds | 3 problems
Interviewed by SAP Labs
816 views
0 comments
0 upvotes
company logo
Associate Software Developer
3 rounds | 7 problems
Interviewed by CIS - Cyber Infrastructure
592 views
0 comments
0 upvotes