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

SDE - 1

Nagarro Software
upvote
share-icon
4 rounds | 12 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: DSA, OOPS, DBMS, Operating system, Computer network
Tip
Tip

Tip 1 : Practice coding question of array, string, hashmap, stack, queue
Tip 2 : Do atleast 2 projects

Application process
Where: Other
Eligibility: 7 CGPA
Resume Tip
Resume tip

Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 Minutes
Interview date6 Jul 2022
Coding problem4

1. MCQ Question

A program P reads in 500 integers in the range [0..100] exepresenting the scores of 500 students. It then prints the frequency of each score above 50. What would be the best way for P to store the frequencies?

A. An array of 50 numbers
B. An array of 100 numbers
C. An array of 500 numbers
D. A dynamically allocated array of 550 numbers

Problem approach

Option 1 : An array of 50 numbers
There are 500 students, the score range is 0 to 100.

Print the frequency of those student whose score is above 50.

So frequency range contains score from 50 to 100, so an array of 50 numbers is suitable for representing the frequency.

2. MCQ Question

Consider an array A[20, 10], assume 4 words per memory cell and the base address of array A is 100. What is the address of A[11, 5] ? Assume row major storage.

A. 560
B. 565
C. 570
D. 575

Problem approach

Option - A =>560 is the correct answer. Explanation : The formula to find the address of A[i][j] or A[11][5] using the row major form is given below => Address of A[i][j] = B + W* [N* (i -Lr) + (j -Lc) ]

3. MCQ Question

The process to find the location of the record with the given key value is called ___
A) Traversing
B) Sorting
C) Searching
D) Deletion

Problem approach

C) Searching: Algorithms are designed to check for an element or retrieve an element from any data structure where it is stored. Therefore finding the location of the element with a given value is Search

4. MCQ Question

An algorithm is a ___ procedure in the normal English language for solving a particular problem.
A) Random
B) Complicated
C) Both A and B
D) Step by step

Problem approach

Ans) D. Step by step

02
Round
Medium
Online Coding Test
Duration90 Minutes
Interview date22 Jul 2022
Coding problem3

1. Most Frequent Word

Easy
0/40
Asked in companies
SalesforceIBMGoldman Sachs

You are given a paragraph that may have letters both in lowercase and uppercase, spaces, and punctuation. You have also given a list of banned words. Now your task is to find the most frequent word which is not in the list of banned words. There will always be a solution, and the solution will be unique.

While comparing words, you can ignore whether the letter is lowercase or uppercase. For example, ‘AsK’ and ‘aSK’ are the same. The words will always contain only alphabets or we can say words will be separated by spaces or punctuation. The answer will be in uppercase letters.

The words in the banned list will always be in upper letters and free from punctuation and spaces.

For example :

Paragraph = ‘It's a square SqUare. It's a FLAT flat.’ 
Banned =[FLAT, IT, S]. 
So we can see these words [IT, S, SQUARE, FLAT ]  are most frequent.
Now we will look at to banned list and we can see 3 of the words are banned.
So we have a unique answer SQUARE which has a frequency of 2 and not on the banned list.
Problem approach

Follow the steps to solve the problem:

Create a count array of size 256 to store the frequency of every character of the string
Maintain a max variable to store the maximum frequency so far whenever encounter a frequency more than max then update max
And update that character in our result variable.

Try solving now

2. Factorial of a Number

Moderate
25m average time
70% success
0/80
Asked in companies
HCL TechnologiesHCL TechnologiesWells Fargo

You are given an integer ‘N’. You have to print the value of Factorial of ‘N’. The Factorial of a number ‘N’ is defined as the product of all numbers from 1 to ‘N’.

For Example:
Consider if ‘N’ = 4, the Factorial of 4 will be the product of all numbers from 1 to 4, which is 1 * 2 * 3 * 4 = 24. Hence, the answer is 24.
Problem approach

Using For loop 

Follow the steps to solve the problem:

Using a for loop, we will write a program for finding the factorial of a number. 
An integer variable with a value of 1 will be used in the program. 
With each iteration, the value will increase by 1 until it equals the value entered by the user. 
The factorial of the number entered by the user will be the final value in the fact variable

Try solving now

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

Naive Approach: The simplest approach to solve this problem is to generate all possible permutations and for each permutation, check if all the elements are not placed in their original position. If found to be true, then increment the count. Finally, print the count.

Try solving now
03
Round
Medium
Video Call
Duration20 minutes
Interview date25 Dec 2022
Coding problem4

1. Java Questions

What is Java?
Advantages of Java
What is JDK, JVM, JRE?
Why Java is platform-independent?
Define public static void main(String args[]) 
Access specifiers
What is the value of a variable when we initialize it?

2. OOPS Questions

What is Object-Oriented programming?
What is constructor?
What is Polymorphism?
What is Abstraction?
Difference between abstraction and interface?
How to achieve all features of Oops in Java?

3. DS Questions

What is Data Structure?
What is Stack?
What is Queue?
What is sorting?
Which sorting algorithm is best?
Time complexity of Quick sort and why its best?
Merge Sort.

4. DBMS Questions

What is Database?
What is Normalization?
What is the concepts of key in DBMS? How many types of keys are in DBMS?
What is the difference between Primary key and unique key?
What is join in SQL?

04
Round
Easy
HR Round
Duration10 Minutes
Interview date30 Dec 2022
Coding problem1

This is a formality. You won’t be rejected unless you make a blunder during the interview. The interviewer will mark you on various skills which you filled in the form before the 2nd round and check that you filled the form seriously or not.

1. Basic HR Questions

Explain your strengths and weaknesses.
Why do u want to join nagarro.
How many rejections have u faced before?
Being from ECE why u wanted a job in its sector.
Comfortable with shifts and relocation.

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
SDE - 1
3 rounds | 3 problems
Interviewed by Nagarro Software
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Nagarro Software
937 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Nagarro Software
1222 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Nagarro Software
759 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58238 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes