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

Software Developer

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

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data structures, Algorithms, OOPS, SQL, DBMS
Tip
Tip

Tip 1 : Prepare DSA thoroughly
Tip 2 : Practice commonly asked DSA questions

Application process
Where: Campus
Eligibility: 60% and above throughout (10th, 12th, UG, PG)
Resume Tip
Resume tip

Tip 1 : Have atleast 1 project
Tip 2 : Put detailed info about technologies used in project

Interview rounds

01
Round
Medium
Online Coding Interview
Duration210 minutes
Interview date31 Aug 2022
Coding problem4

The test was conducted in-campus on lab computers. There was an invigilation team of nagarro present along with college teachers. Students were allowed to take small breaks between the 3 sections of test.

1. Next Permutation

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

You have been given a permutation of ‘N’ integers. A sequence of ‘N’ integers is called a permutation if it contains all integers from 1 to ‘N’ exactly once. Your task is to rearrange the numbers and generate the lexicographically next greater permutation.

To determine which of the two permutations is lexicographically smaller, we compare their first elements of both permutations. If they are equal — compare the second, and so on. If we have two permutations X and Y, then X is lexicographically smaller if X[i] < Y[i], where ‘i’ is the first index in which the permutations X and Y differ.

For example, [2, 1, 3, 4] is lexicographically smaller than [2, 1, 4, 3].

Problem approach

I was not able to solve this problem.

Try solving now

2. Partition Equal Subset Sum

Moderate
25m average time
65% success
0/80
Asked in companies
AdobeAmazonOla

You are given an array 'ARR' of 'N' positive integers. Your task is to find if we can partition the given array into two subsets such that the sum of elements in both subsets is equal.

For example, let’s say the given array is [2, 3, 3, 3, 4, 5], then the array can be partitioned as [2, 3, 5], and [3, 3, 4] with equal sum 10.

Follow Up:

Can you solve this using not more than O(S) extra space, where S is the sum of all elements of the given array?
Problem approach

I was not able to solve this problem.

Try solving now

3. Longest Unique Substring ll

Easy
0/40
Asked in companies
IntuitAmazonGoldman Sachs

You are given a string 'Str' consisting of 'N' lowercase Latin letters. You have to find the longest substring of the given string without repeating characters.

String ‘B’ is a substring of string ‘A’ if it can be obtained from ‘A’ by deletion of several (possibly, zero or all) characters from the beginning and several (possibly, zero or all) characters from the end.

For Example :
If the given input string is "aabc", then you should return "abc" as the longest substring without repeating characters.
Note :
If there are multiple substrings with the same length, then you should print the substring which comes earlier in the given string. 
For Example :
If the given input string is "abcda", here “abcd” and “bcda” can be the longest unique substring but “abcd” comes earlier in the given string. So we will print “abcd” as the longest unique substring.
Problem approach

I was not able to answer this question.

Try solving now
Moderate
20m average time
80% success
0/80
Asked in companies
HCL TechnologiesAmazonOracle

You are given an ‘M*N’ Matrix, You need to print all possible paths from its top left corner to the bottom right corner if given that you can either move right i.e from (i,j) to (i,j+1) or down i.e from (i, j) to (i+1, j).

For Example :
1 2 3
4 5 6

For the above 2*3 matrix , possible paths are (1 2 3 6) , (1 2 5 6) , (1 4 5 6).
Note :
You can return the paths in any order.
Problem approach

I was not able to solve this problem.

Try solving now
02
Round
Medium
Video Call
Duration30 minutes
Interview date1 Sep 2022
Coding problem2

The interviewer was polite and helpful and gave me decent time to come up with answers. I was asked questions form my resume and also DSA questions.

1. Maximum Subarray Sum

Moderate
25m average time
75% success
0/80
Asked in companies
CultfitPayPalWalmart

Given an array of numbers, find the maximum sum of any contiguous subarray of the array.


For example, given the array [34, -50, 42, 14, -5, 86], the maximum sum would be 137, since we would take elements 42, 14, -5, and 86.


Given the array [-5, -1, -8, -9], the maximum sum would be -1.


Follow up: Do this in O(N) time.

Problem approach

I first gave a naive approach of finding all subarrays and using them to find the answer. While I was trying to find a more optimized approach, the time ran out.
This can be solved by using kadane's algorithm, the steps for which are:
-Initialize the variables max_so_far = INT_MIN and max_ending_here = 0
-Run a for loop form 0 to N-1 and for each index i:
-Add the arr[i] to max_ending_here.
-If max_so_far is less than max_ending_here then update max_so_far to max_ending_here.
-If max_ending_here < 0 then update max_ending_here = 0
-Return max_so_far

Try solving now

2. DBMS based Question

How does indexing work in SQL? Which data structure is used to implement it?

Problem approach

Tip 1: Read up on indexing in SQL
Tip 2: Learn about m-way trees for indexing

03
Round
Easy
HR Round
Duration15 minutes
Interview date2 Sep 2022
Coding problem3

The time was 3pm. The interviewer was polite and calm.

1. Basic HR Question

Tell 4 positives and negatives about yourself.

Problem approach

Tip 1: Prepare for commonly asked HR questions
Tip 2: Always give some indirect positive quality in negative as well

2. Basic HR Question

Why do you want to join this company?

Problem approach

Tip 1: Read about the company in advance and know their motto etc.
Tip 2: Be prepared with positive qualities about the company

3. Basic HR Question

Why should we hire you?

Problem approach

Tip 1: Be prepared to list how you would be a great asset to the company
Tip 2: Give honest answers

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
Software Developer
3 rounds | 7 problems
Interviewed by Nagarro Software
2285 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 4 problems
Interviewed by Nagarro Software
1803 views
0 comments
0 upvotes
company logo
Software Developer
4 rounds | 5 problems
Interviewed by Nagarro Software
1210 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 5 problems
Interviewed by Nagarro Software
1438 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Developer
5 rounds | 14 problems
Interviewed by Microsoft
4029 views
1 comments
0 upvotes
company logo
Software Developer
6 rounds | 12 problems
Interviewed by SAP Labs
2912 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 3 problems
Interviewed by Amazon
1271 views
0 comments
0 upvotes