Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by Nagarro Team. If you also belong to the team, you can get access from here

Nagarro Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

Nagarro SDE Interview Questions and Answers

Updated 12 Dec 2024

6 Interview questions

🔥 Asked by recruiter 2 times
A SDE was asked
Q. 

Duplicate Subtrees Problem Statement

Given a binary tree, return the root values of all duplicate subtrees. Two subtrees are considered duplicate if they have the same structure with identical node values....

Ans. 

Find root values of duplicate subtrees in a binary tree.

  • Traverse the tree in a bottom-up manner to identify duplicate subtrees.

  • Use a hashmap to store the subtree structures and their frequencies.

  • Return the root values of duplicate subtrees based on hashmap entries.

A SDE was asked
Q. 

Maximum Meetings Selection

You are tasked with scheduling meetings in a single meeting room. Given N meetings, each with a start time Start[i] and end time End[i], determine the maximum number of meetings ...

Ans. 

Given start and end times of meetings, find the maximum number of meetings that can be scheduled in a single room.

  • Sort the meetings based on their end times in ascending order.

  • Iterate through the sorted meetings and select the ones that do not overlap with the previously selected meetings.

  • Keep track of the selected meetings and return their indices.

SDE Interview Questions Asked at Other Companies

asked in Infosys
Q1. Return Subsets Sum to K Problem Statement Given an integer array ... read more
asked in Nagarro
Q2. Partition to K Equal Sum Subsets Problem Given an array of intege ... read more
asked in Nagarro
Q3. Sort a "K" Sorted Doubly Linked List Given a doubly-linked list w ... read more
asked in Amazon
Q4. Describe a scenario where you were given updates on repaired road ... read more
asked in Nagarro
Q5. Maximum Meetings Selection You are tasked with scheduling meeting ... read more
🔥 Asked by recruiter 2 times
A SDE was asked
Q. Can you explain the concept of keys in database management systems?
Ans. 

Keys in database management systems are unique identifiers for rows in a table.

  • Keys ensure data integrity by enforcing uniqueness and relationships between tables.

  • Primary key uniquely identifies each record in a table (e.g. employee ID).

  • Foreign key establishes a link between two tables by referencing the primary key of another table.

🔥 Asked by recruiter 2 times
A SDE was asked
Q. 

Merge k Sorted Linked Lists

You are provided with 'K' sorted linked lists, each sorted in increasing order. Your task is to merge all these lists into one single sorted linked list and return the head of t...

Ans. 

Merge k sorted linked lists into one single sorted linked list.

  • Create a min-heap to store the heads of all linked lists.

  • Pop the smallest element from the heap and add it to the result list.

  • If the popped element has a next element, push it back to the heap.

  • Repeat until all elements are merged into a single sorted list.

What people are saying about Nagarro

View All
a senior engineer
1w
💼 OFFER RECEIVED – Sr. Test Engineer (Band U3) | Tech Mahindra | Noida 📎 Screenshot attached | CTC: ₹13.5 LPA
✅ Variable is paid monthly and fully (as confirmed by HR) ❓ Looking to know the MONTHLY IN-HAND SALARY after standard deductions & partial FBP usage Would appreciate any insights from current/ex-TechM folks! 🙏
FeedCard Image
Got a question about Nagarro?
Ask anonymously on communities.
A SDE was asked
Q. 

Sort a "K" Sorted Doubly Linked List

Given a doubly-linked list with N nodes, where each node’s position deviates at most K positions from its position in the sorted list, your task is to sort this given d...

Ans. 

Sort a doubly linked list where each node's position deviates at most K positions from its position in the sorted list.

  • Iterate through the doubly linked list and maintain a min-heap of size K+1 to keep track of the next smallest element.

  • Remove the smallest element from the heap and add it to the sorted list. Update the heap with the next element from the removed node's next position.

  • Continue this process until all...

A SDE was asked
Q. 

Partition to K Equal Sum Subsets Problem

Given an array of integers and a positive integer 'K', determine if it is possible to divide the array into 'K' non-empty subsets such that the sum of elements in e...

Ans. 

The problem involves dividing an array into K subsets with equal sum.

  • Use backtracking to try all possible combinations of subsets.

  • Keep track of the sum of elements in each subset and check if they are equal to the target sum.

  • Optimize by sorting the array in descending order and assigning elements to subsets greedily.

  • Handle edge cases like when the sum of elements is not divisible by K.

Nagarro SDE Interview Experiences

2 interviews found

SDE Interview Questions & Answers

user image Anonymous

posted on 12 Dec 2024

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - One-on-one 

(1 Question)

  • Q1. DSA ARRAY QUESTIONS EASY TO MEDIUM LEVEL

Interview Preparation Tips

Interview preparation tips for other job seekers - An easy interview process can also be beneficial.

SDE Interview Questions & Answers

user image Anonymous

posted on 17 May 2022

I appeared for an interview in Aug 2021.

Round 1 - Coding Test 

(5 Questions)

Round duration - 180 minutes
Round difficulty - Medium

It was a long round of around 3 hours divided into 2 parts 
1. Aptitude(MCQ)
2. Coding(Subjective)

  • Q1. 

    Maximum Meetings Selection

    You are tasked with scheduling meetings in a single meeting room. Given N meetings, each with a start time Start[i] and end time End[i], determine the maximum number of meetings...

  • Ans. 

    Given start and end times of meetings, find the maximum number of meetings that can be scheduled in a single room.

    • Sort the meetings based on their end times in ascending order.

    • Iterate through the sorted meetings and select the ones that do not overlap with the previously selected meetings.

    • Keep track of the selected meetings and return their indices.

  • Answered by AI
  • Q2. 

    Partition to K Equal Sum Subsets Problem

    Given an array of integers and a positive integer 'K', determine if it is possible to divide the array into 'K' non-empty subsets such that the sum of elements in ...

  • Ans. 

    The problem involves dividing an array into K subsets with equal sum.

    • Use backtracking to try all possible combinations of subsets.

    • Keep track of the sum of elements in each subset and check if they are equal to the target sum.

    • Optimize by sorting the array in descending order and assigning elements to subsets greedily.

    • Handle edge cases like when the sum of elements is not divisible by K.

  • Answered by AI
  • Q3. 

    Merge k Sorted Linked Lists

    You are provided with 'K' sorted linked lists, each sorted in increasing order. Your task is to merge all these lists into one single sorted linked list and return the head of ...

  • Ans. 

    Merge k sorted linked lists into one single sorted linked list.

    • Create a min-heap to store the heads of all linked lists.

    • Pop the smallest element from the heap and add it to the result list.

    • If the popped element has a next element, push it back to the heap.

    • Repeat until all elements are merged into a single sorted list.

  • Answered by AI
  • Q4. 

    Sort a "K" Sorted Doubly Linked List

    Given a doubly-linked list with N nodes, where each node’s position deviates at most K positions from its position in the sorted list, your task is to sort this given ...

  • Ans. 

    Sort a doubly linked list where each node's position deviates at most K positions from its position in the sorted list.

    • Iterate through the doubly linked list and maintain a min-heap of size K+1 to keep track of the next smallest element.

    • Remove the smallest element from the heap and add it to the sorted list. Update the heap with the next element from the removed node's next position.

    • Continue this process until all node...

  • Answered by AI
  • Q5. 

    Duplicate Subtrees Problem Statement

    Given a binary tree, return the root values of all duplicate subtrees. Two subtrees are considered duplicate if they have the same structure with identical node values...

  • Ans. 

    Find root values of duplicate subtrees in a binary tree.

    • Traverse the tree in a bottom-up manner to identify duplicate subtrees.

    • Use a hashmap to store the subtree structures and their frequencies.

    • Return the root values of duplicate subtrees based on hashmap entries.

  • Answered by AI
Round 2 - Telephonic Call 

(1 Question)

Round duration - 25 minutes
Round difficulty - Medium

The technical Interview round was not at all difficult. The main focus of the interviewer was my projects and development fields.
He also asked some DS/Algo questions that were at a medium level, and some easy questions for database management.

  • Q1. Can you explain the concept of keys in database management systems?
  • Ans. 

    Keys in database management systems are unique identifiers for rows in a table.

    • Keys ensure data integrity by enforcing uniqueness and relationships between tables.

    • Primary key uniquely identifies each record in a table (e.g. employee ID).

    • Foreign key establishes a link between two tables by referencing the primary key of another table.

  • Answered by AI
Round 3 - HR 

(2 Questions)

Round duration - 15 minutes
Round difficulty - Easy

It took place on the same day as the technical round. It was quite the easiest round of all. The interviewer just asked me to introduce myself, projects I have worked on, my Internships experience, and were they internships paid.

  • Q1. Can you tell me about yourself?
  • Q2. Can you tell me about the different projects that you have worked on?

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Bharati Vidyapeeth's College of Engineering. I applied for the job as SDE in GurgaonEligibility criteria7.5 CGPANagarro interview preparation:Topics to prepare for the interview - Data Structures, OOPS, Algorithms, Dynamic Programming, Database Management, Operating System, Aptitude.Time required to prepare for the interview - 3.5 monthsInterview preparation tips for other job seekers

Tip 1 : Do at least 2-3 Development Projects as it creates a great impression. 
Tip 2 : Do it simply don't include complex terms to explain anything/concept. 
Tip 3 : Practice as many questions as you can.

Application resume tips for other job seekers

Tip 1 : Resume should be one page only as being a fresher impact a lot.
Tip 2 : Resumes should contain all the links for projects and certificates as it impresses the interviewer.

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview questions from similar companies

SDE Interview Questions & Answers

UST user image Anonymous

posted on 4 Apr 2024

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Walk-in and was interviewed before Apr 2023. There were 2 interview rounds.

Round 1 - Aptitude Test 

EASY and Basics need to be Strong

Round 2 - Coding Test 

DSA based questions and hard

Interview Preparation Tips

Interview preparation tips for other job seekers - do dsa thats is.
Interview experience
5
Excellent
Difficulty level
Hard
Process Duration
-
Result
-

I applied via Company Website

Round 1 - Assignment 

Present a solution for a machine learning problem and create a PowerPoint presentation.

What people are saying about Nagarro

View All
a senior engineer
1w
💼 OFFER RECEIVED – Sr. Test Engineer (Band U3) | Tech Mahindra | Noida 📎 Screenshot attached | CTC: ₹13.5 LPA
✅ Variable is paid monthly and fully (as confirmed by HR) ❓ Looking to know the MONTHLY IN-HAND SALARY after standard deductions & partial FBP usage Would appreciate any insights from current/ex-TechM folks! 🙏
FeedCard Image
Got a question about Nagarro?
Ask anonymously on communities.
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I appeared for an interview in Mar 2025, where I was asked the following questions.

  • Q1. How would you find distinct from Employee type list using Java streams
  • Ans. 

    Java streams can efficiently extract distinct employee types from a list using functional programming techniques.

    • Use Stream API: Convert the list of employees to a stream using `stream()` method.

    • Map to Employee Type: Use `map()` to transform the employee objects to their types (e.g., `employee.getType()`).

    • Distinct Values: Apply `distinct()` to filter out duplicate types.

    • Collect Results: Use `collect(Collectors.toSet())...

  • Answered by AI
  • Q2. Create employee type class and abstract class
  • Ans. 

    Design an Employee class and an abstract class to represent different employee types in a software application.

    • Create an abstract class 'Employee' with common attributes like name and ID.

    • Define abstract methods like 'calculateSalary()' that subclasses must implement.

    • Implement concrete classes like 'FullTimeEmployee' and 'PartTimeEmployee' that extend 'Employee'.

    • Use polymorphism to handle different employee types unifor...

  • Answered by AI

SDE Interview Questions & Answers

UST user image Anonymous

posted on 10 Apr 2025

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Selected Selected

I appeared for an interview in Oct 2024, where I was asked the following questions.

  • Q1. ALL DSA QUESTIONS TYPE
  • Q2. Java programming and oops questions
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via LinkedIn and was interviewed in Nov 2024. There were 2 interview rounds.

Round 1 - Coding Test 

Oops in python asked

Round 2 - Technical 

(2 Questions)

  • Q1. What is inheritance, its types
  • Ans. 

    Inheritance is a concept in object-oriented programming where a class inherits properties and behaviors from another class.

    • Types of inheritance include single inheritance, where a class inherits from only one parent class, and multiple inheritance, where a class inherits from multiple parent classes.

    • Inheritance allows for code reusability and promotes the concept of hierarchical classification.

    • Example: Class B inheriti...

  • Answered by AI
  • Q2. What is your project, it drawback and scope of improvement
Are these interview questions helpful?

SDE Interview Questions & Answers

Genpact user image Anonymous

posted on 7 Oct 2024

Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.

Round 1 - Aptitude Test 

It was easy to crack so easy

SDE Interview Questions & Answers

Genpact user image Anonymous

posted on 24 Sep 2023

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Aptitude Test 

Basic MCQs on CS concepts

Round 3 - Technical 

(1 Question)

  • Q1. Resume based questions

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confident with your resume and communication.

I applied via Campus Placement and was interviewed before May 2021. There were 2 interview rounds.

Round 1 - Aptitude Test 

Basic aptitude knowledge

Round 2 - Coding Test 

Strong in java

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confidence and focus on your goal

Nagarro Interview FAQs

How many rounds are there in Nagarro SDE interview?
Nagarro interview process usually has 1 rounds. The most common rounds in the Nagarro interview process are One-on-one Round.

Tell us how to improve this page.

Overall Interview Experience Rating

4/5

based on 1 interview experience

Nagarro SDE Reviews and Ratings

based on 1 review

4.0/5

Rating in categories

4.0

Skill development

4.0

Work-life balance

4.0

Salary

4.0

Job security

4.0

Company culture

4.0

Promotions

4.0

Work satisfaction

Explore 1 Review and Rating
Associate Staff Engineer
3.3k salaries
unlock blur

₹10 L/yr - ₹36 L/yr

Staff Engineer
3.3k salaries
unlock blur

₹11.8 L/yr - ₹45 L/yr

Senior Engineer
2.5k salaries
unlock blur

₹6.4 L/yr - ₹23.5 L/yr

Senior Software Engineer
1.2k salaries
unlock blur

₹7.1 L/yr - ₹31 L/yr

Software Engineer
1.1k salaries
unlock blur

₹3.3 L/yr - ₹13 L/yr

Explore more salaries
Compare Nagarro with

Deloitte

3.7
Compare

Cognizant

3.7
Compare

TCS

3.6
Compare

Accenture

3.8
Compare
write
Share an Interview