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

Software Engineer Trainee

Nagarro pvt limited
upvote
share-icon
4 rounds | 13 Coding problems

Interview preparation journey

expand-icon
Journey
I graduated in 2021. I joined B.tech but I was a biology student so it was very tough for me in the initial days to adjust to the coding culture. I enrolled in a tier 3 college where there was no coding culture. Then, in March 2020, COVID struck, marking a sea change in my life. After that, I noticed a job posting on LinkedIn for a recent graduate software engineer in Nagarro.  It was a Java role, so I was immediately drawn to it. I revised my notes and studied for the interview. Fortunately, I had the chance to interview, and I was eventually hired for the trainee position, which was then extended to a full-time position as a software engineer.
Application story
I applied via LinkedIn, and then the recruiter contacted me via email with the following details: Aptitude Round details: Date of Test: Time Slot: 10:30 AM – 11:30 AM Duration: 60 Minutes Link: Coding Round details: Date of Test: Time Slot: 12:00 PM - 1:00 PM Duration: 90 Minutes Link:
Why selected/rejected for the role?
I was chosen because I had a strong cumulative grade point average, confidently and accurately answered every interview question, was proficient in Java, and had experience with projects and internships.
Preparation
Duration: 3 months
Topics: Aptitude, OOPS, DBMS, Data structures and algorithm basics, Java theory, Computer Networks.
Tip
Tip

Tip 1: Prepare well for aptitude, DSA basics, and revise college subjects theory.
Tip 2: Do not lie about anything on your resume as you will be asked anything related to it.
Tip 3: Basics are enough.

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

Tip 1: The resume should have the required skills and project.
Tip 2: It should have some internship experience

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 mins
Interview date8 Mar 2021
Coding problem3

This section will include 15–20 questions. They are based on subjects such as tests of general aptitude, logical reasoning, numerical reasoning, patterns, scenario-based, and verbal reasoning.

1. Work Distribution and Payment Calculation Problem

A alone can do a piece of work in 6 days and B alone in 8 days. A and B undertook to do it for Rs. 3200. With the help of C, they completed the work in 3 days. How much is to be paid to C?

Problem approach

Tip 1: Practice a lot of the questions on the Indiabix website. 

Tip 2: If you're short on time and can't practice answering a lot of questions, at least view the formula and memorize it (e.g. simple interest, compound interest). 

Tip 3: Be quick in solving questions, as I've heard that many applicants are turned down by recruiters here. Hence, achieving a high score in this area is crucial.

2. Printing Machines and Completion Time Estimation Puzzle

A machine P can print one lakh books in 8 hours, machine Q can print the same number of books in 10 hours while Machine R can print them in 12 hours. All the machines are started at 9 A.M. while machine P is closed at 11 A.M. and the remaining two machines complete work. Approximately at what time will the work (to print one lakh books) be finished?

3. Compound Interest

The compound interest on Rs. 30,000 at 7% per annum is Rs. 4347. The period (in years) is:

02
Round
Easy
Online Coding Interview
Duration90 mins
Interview date8 Mar 2021
Coding problem3

Finding the error, determining the complexity, predicting the output, and concepts related to data structures and algorithms were all covered in the questions.
In the end, there were three code challenges. 
In addition to questions about DBMS, CN, and OOPS from the college course.

1. Maximum element in an Array.

Easy
15m average time
80% success
0/40
Asked in companies
Info Edge India (Naukri.com)OracleHCL Technologies

Write a program to find the second maximum element in an array.

Problem approach

Initialize the first as 0(i.e, index of arr[0] element
Start traversing the array from array[1],
If the current element in the array say arr[i] is greater than the first. Then update first and second as, second = first and first = arr[i]
If the current element is in between the first and second, then update the second to store the value of a current variable as second = arr[i]
Return the value stored in the second.

Try solving now

2. Palindrome Phrase Check with String Manipulation

Easy
10m average time
90% success
0/40
Asked in companies
SprinklrCIS - Cyber InfrastructureSamsung

A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric characters include letters and numbers. Given a string s, return true if it is a palindrome, or false otherwise.

Try solving now
Easy
30m average time
80% success
0/40
Asked in companies
OYOThought WorksAdobe

Print all permutations of a given string.

Problem approach

Follow the given steps to solve the problem:

1. Create a function permute() with parameters: input string, starting index of the string, ending index of the string.
2. Call this function with values: input string, 0, size of string – 1.
3. In this function, if the value of L and R is the same, then print the same string.
4. Else, run a for loop from L to R and swap the current element in the loop with the inputString[L].
5. Then, call this same function again by increasing the value of L by 1.
6. After that, swap the previously swapped values to initiate backtracking.
 

Try solving now
03
Round
Medium
Video Call
Duration45
Interview date12 Mar 2021
Coding problem3

It was about 40-45 minutes of the round.
The recruiter was very friendly and they asked questions related to DSA.

1. Majority element

Easy
15m average time
85% success
0/40
Asked in companies
Thought WorksInfo Edge India (Naukri.com)HCL Technologies

Given an array ‘nums’ of size n, return the majority element. The majority element is the element that appears more than ⌊n / 2⌋ times. You may assume that the majority element always exists in the array.

Problem approach

I was asked about the question. But they don't want me to solve it properly. they wanted only to tell the approach.
I told them about the brute force approach and I was asked to find the time complexity of the approach
I suggested to them I could solve this issue in less time. 

But interviewer posted a new question in Zoom chat

Try solving now

2. Binary sort

Easy
15m average time
85% success
0/40
Asked in companies
OracleMedia.netAdobe

Write a code for Binary sort.

Problem approach

I was asked to explain the whole flow of the binary search algorithm: 

how it works, how it is helpful, and why we use it. 

Additionally, I was asked about its time complexity and why it is lower compared to linear search and many other questions.

Try solving now

3. Anagrams

Moderate
0/80
Asked in companies
PayPalArcesiumDunzo

Given a sequence of words, print all anagrams together

Problem approach

A simple method is to create a Hash Table. Calculate the hash value of each word in such a way that all anagrams have the same hash value. Populate the Hash Table with these hash values. Finally, print those words together with the same hash values. A simple hashing mechanism can be modulo the sum of all characters. With modulo sum, two non-anagram words may have the same hash value. This can be handled by matching individual characters.

Try solving now
04
Round
Medium
Video Call
Duration30
Interview date15 Mar 2021
Coding problem4

Technical round - 

First I was asked to talk about myself.
I told them about my internship experiences and also about my past projects so she started asking me about them.
Back-to-back questions were asked. and I was tested very much here. 
why did you choose this tech stack? why not that one so be prepared with all of them.
They wanted to know if I was lying or working on the projects. I answered all of them very accurately and there I won the confidence of the interviewer.

She then started asking easy questions from DBMS, OOPS, and the Searching algorithm.

Talking about the recruiter - she was a little unfriendly which made me uncomfortable throughout the interview.

1. Reentrancy and Scheduling Algorithm

What is Reentrancy?
What is a Scheduling Algorithm? Name different types of scheduling algorithms.

Problem approach

Tip 1: Go through your college semester notes on these subjects and you are good to go.
 

2. Normalization forms

Explain different types of Normalization forms in a DBMS.

Problem approach

Tip 1: Answer all questions confidently.
Tip 2: Go through top 50 questions asked in an interview about each topic from Google.
 

3. Wrapper classes

Why do we need wrapper classes?

Problem approach

They convert primitive data types into objects. Objects are needed if we wish to modify the arguments passed into a method (because primitive types are passed by value).

4. Heap and Stack Memory in Java

What are the differences between Heap and Stack Memory in Java? (Link)

Problem approach

Stack Memory
The stack memory is a physical space (in RAM) allocated to each thread at run time. It is created when a thread is created. Memory management in the stack follows the LIFO (Last-In-First-Out) order because it is accessible globally. It stores the variables, references to objects, and partial results. Memory allocated to stack lives until the function returns. If there is no space for creating the new objects, it throws the java.lang.StackOverFlowError. The scope of the elements is limited to their threads. The JVM creates a separate stack for each thread.

Heap Memory
It is created when the JVM starts up and is used by the application as long as the application runs. It stores objects and JRE classes. Whenever we create objects it occupies space in the heap memory while the reference of that object is created in the stack. It does not follow any order like the stack. It dynamically handles the memory blocks. It means we do need not to handle the memory manually. For managing the memory automatically, Java provides a garbage collector that deletes the objects that are no longer being used. Memory allocated to heap lives until any one event, either program terminated or memory does not occur. The elements are globally accessible in the application. It is a common memory space shared with all the threads. If the heap space is full, it throws the java.lang.OutOfMemoryError.

Here's your problem of the day

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

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
Associate Software Developer
4 rounds | 7 problems
Interviewed by Nagarro pvt limited
376 views
0 comments
0 upvotes
Software Engineer
3 rounds | 8 problems
Interviewed by Nagarro pvt limited
231 views
0 comments
0 upvotes
Senior Software Engineer
2 rounds | 5 problems
Interviewed by Nagarro pvt limited
1011 views
0 comments
0 upvotes
Fullstack Developer
2 rounds | 9 problems
Interviewed by Nagarro pvt limited
706 views
0 comments
0 upvotes