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

Senior Software Engineer

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

Interview preparation journey

expand-icon
Preparation
Duration: 6 Months
Topics: Array, String,DP, Tree, Graph, Greedy,ML, Python,SQL
Tip
Tip

Tip 1: First master any one programming Language.
Tip 2: Solve coding questions on each topic.
Tip 3: Give mock interviews and live contests.

Application process
Where: Company Website
Eligibility: NA
Resume Tip
Resume tip

Tip 1 : Use a one-page resume in the single-column format.
Tip 2 : Check grammatical errors and use action words and quantify your achievements.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration30 mins
Interview date16 Apr 2022
Coding problem1

Aptitude test

1. Maximum In Sliding Windows Of Size K

Moderate
20m average time
80% success
0/80
Asked in companies
AppleWalmartOYO

Given an array/list of integers of length ‘N’, there is a sliding window of size ‘K’ which moves from the beginning of the array, to the very end. You can only see the ‘K’ numbers in a particular window at a time. For each of the 'N'-'K'+1 different windows thus formed, you are supposed to return the maximum element in each of them, from the given array/list.

Try solving now
02
Round
Medium
Online Coding Interview
Duration60 mins
Interview date20 Apr 2022
Coding problem2

Coding Round

1. Second largest element in the array

Easy
15m average time
80% success
0/40
Asked in companies
AdobeSamsungIBM

You have been given an array/list 'ARR' of integers. Your task is to find the second largest element present in the 'ARR'.

Note:
a) Duplicate elements may be present.

b) If no such element is present return -1.
Example:
Input: Given a sequence of five numbers 2, 4, 5, 6, 8.

Output:  6

Explanation:
In the given sequence of numbers, number 8 is the largest element, followed by number 6 which is the second-largest element. Hence we return number 6 which is the second-largest element in the sequence.
Problem approach

The idea is to sort the array in descending order and then return the second element which is not equal to the largest element from the sorted array.

Try solving now

2. Digits Decoding

Moderate
25m average time
70% success
0/80
Asked in companies
FacebookAdobeOYO

A few days back, Ninja encountered a string containing characters from ‘A’ to ‘Z’ which indicated a secret message. For security purposes he encoded each character of the string to its numeric value, that is, A = 1, B = 2, C = 3, till Z = 26 and combined them as a single sequence (SEQ) of digits of length N. Let's say the message was "LA", Ninja encoded it as 121 for L=12 and A=1.

Today, when he read the encoded secret message, he realised that he was not able to decode the original string. So, the Ninja is wondering in how many ways he can decode the numeric sequence to some valid string.

A valid string is a string with characters from A to Z and no other characters.

Example:
Let the encoded sequence be 121,

The first way to decode 121 is:
1 = A
2 = B
1 = A
Thus, the decoded string will be ABA.

The second way to decode 121 is:
12 = L
1 = A
Thus, the decoded string will be LA.

The third way to decode 121 is:
1 = A
21 = U
Thus, the decoded string will be AU.

So, there will be 3 ways to decode the sequence 121 i.e. [(ABA), (LA), (AU)].
Note:
The input sequence will always have at least 1 possible way to decode.    

As the answer can be large, return your answer modulo 10^9  + 7.
Follow Up:
Can you solve this using constant extra space?
Problem approach

This problem is recursive and can be broken into sub-problems. We start from the end of the given digit sequence. We initialize the total count of decodings as 0. We recur for two subproblems. 
1) If the last digit is non-zero, recur for the remaining (n-1) digits and add the result to the total count. 
2) If the last two digits form a valid character (or smaller than 27), recur for the remaining (n-2) digits and add the result to the total count.
https://leetcode.com/problems/decode-ways/

Try solving now
03
Round
Easy
Face to Face
Duration60 mins
Interview date21 Apr 2022
Coding problem2

Coding + ML+ Statistics +SQL

1. Puzzle

He asked me my height. I told him 178cm. Then he creates one situation that goes like this. There is one river that has a depth of 174cm. He told me that if you don't have anything then how will cross the river? Also, which parameter in the statistics will help find the confidence you will be able to cross the river?

Problem approach

Tip 1: Ask clarifying questions
Tip 2: Understand the problem and write down all the things told by the interviewer.
Tip 3: Explain the Brute force approach and then optimize it. Communication is the Key.

2. ML Question

Difference between Regression and Classification Random Forest model.

Problem approach

For classification tasks, the output of the random forest is the class selected by most trees. For regression tasks, the mean or average prediction of the individual trees is returned.

04
Round
Easy
Face to Face
Duration60 mins
Interview date22 Apr 2022
Coding problem2

Coding + ML+ Statistics +SQL

1. ML Question

If we have left skewed data, tell me the relation between Mean, Median, and Mode.

Problem approach

Generally, if the distribution of data is skewed to the left, the mean is less than the median, which is often less than the mode. If the distribution of data is skewed to the right, the mode is often less than the median, which is less than the mean.

2. ML Question

why random forests are called random?

Problem approach

It is called a Random Forest because we use Random subsets of data and features and we end up building a Forest of decision trees (many trees). Random Forest is also a classic example of a bagging approach as we use different subsets of data in each model to make predictions

05
Round
Easy
HR Round
Duration30 mins
Interview date26 Apr 2022
Coding problem1

This round is a formality Interviewer asked me for feedback. Asked me if I am willing to relocate to a foreign country if required. Tried to negotiate the salary.
Some typical HR questions and Interview ends.

1. Basic HR Questions

Tell me about yourself.
Why do you want to work for our company?
Will you relocate?

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
Senior Software Engineer
2 rounds | 3 problems
Interviewed by Nagarro Software
2988 views
0 comments
0 upvotes
company logo
Senior Software Engineer
6 rounds | 5 problems
Interviewed by Nagarro Software
1659 views
0 comments
0 upvotes
company logo
Senior Software Engineer
5 rounds | 5 problems
Interviewed by Nagarro Software
1110 views
0 comments
0 upvotes
company logo
Assistant System Engineer
4 rounds | 7 problems
Interviewed by Nagarro Software
971 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Senior Software Engineer
1 rounds | 6 problems
Interviewed by Arcesium
3920 views
0 comments
0 upvotes
company logo
Senior Software Engineer
3 rounds | 3 problems
Interviewed by Ernst & Young (EY)
5173 views
0 comments
0 upvotes
company logo
Senior Software Engineer
3 rounds | 3 problems
Interviewed by HCL Technologies
3155 views
3 comments
0 upvotes