i
Nagarro
Filter interviews by
Clear (1)
I applied via Naukri.com and was interviewed in Sep 2021. There was 1 interview round.
I was interviewed before Dec 2020.
Round duration - 90 minute
Round difficulty - Hard
The test comprises of aptitude question in 1 half and aptitude question in 2 half then there is a coding round with 3 question and one was easy one was of medium and one was from hard, a deep understanding of question was a must
You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to find and return a list of all pairs of elements where each sum of a pair equals 'S'.
Find pairs of elements in an array that sum up to a given value, sorted in a specific order.
Iterate through the array and use a hashmap to store the difference between the target sum and each element.
Check if the current element's complement exists in the hashmap, if so, add the pair to the result list.
Sort the pairs based on the criteria mentioned in the question.
Return the list of pairs as the final output.
Given two strings 'P' and 'Q' of equal length, determine if string 'P' can be transformed into string 'Q' by cyclically rotating it to the right any num...
Check if one string can be transformed into another by cyclically rotating it to the right.
Iterate through all possible rotations of string P and check if any of them match string Q.
Use string concatenation and substring operations to simulate the rotation.
Optimize the solution to O(N) time complexity by checking if string Q is a substring of P concatenated with itself.
You are provided with the Inorder and Level Order traversals of a Binary Tree composed of integers. Your goal is to determine the height of this Binary Tree without actually construc...
Find the height of a Binary Tree given its Inorder and Level Order traversals without constructing it.
Use the properties of Inorder and Level Order traversals to determine the height of the Binary Tree.
The height of a Binary Tree is the number of edges on the longest path from the root to a leaf node.
Consider edge cases like a single node tree or empty tree while calculating the height.
Round duration - 48 minutes
Round difficulty - Medium
This round was the most difficult round the interviewer was quite helpful and helped me throughout the interview
Ninja encountered an issue with a practice problem where certain test cases could not be passed due to high time complexity. You are provided with a snippet of pseudocode, and yo...
Optimize pseudocode to compute XOR operations in a given range and return sum modulo 1000000007.
Use bitwise XOR properties to optimize the computation.
Avoid unnecessary nested loops by simplifying the logic.
Consider using modular arithmetic to handle large numbers efficiently.
Given an array arr
of length N
consisting of integers, find the sum of the subarray (including empty subarray) with the maximum sum among all subarrays.
Find the sum of the subarray with the maximum sum among all subarrays in a given array.
Iterate through the array and keep track of the maximum sum subarray seen so far.
Use Kadane's algorithm to efficiently find the maximum subarray sum.
Handle cases where all elements in the array are negative.
Consider the sum of an empty subarray as 0.
Round duration - 20 Minutes
Round difficulty - Easy
Tip 1 : dont think you are from lower branch
Tip 2 : just strive hard and work hard
Tip 3 : practise whatever you are doing as much as you can
Tip 1 : be short and precise
Tip 2 : dont write false information be thorough with whatever you have done in life
I applied via Campus Placement and was interviewed in Jun 2021. There were 4 interview rounds.
I was interviewed before Feb 2021.
Round duration - 150 Minutes
Round difficulty - Medium
It was an Aptitude test and Technical objective test of 60 minutes followed by a Coding test of 90 minutes.There was a 1 hour gap b/w the two tests.
Determine the number of derangements possible for a set of 'N' elements. A derangement is a permutation where no element appears in its original position.
An integer 'T' repres...
Count the number of derangements possible for a set of 'N' elements.
Derangement is a permutation where no element appears in its original position.
Use dynamic programming to calculate derangements efficiently.
Apply the formula: D(n) = (n-1) * (D(n-1) + D(n-2)), with base cases D(1) = 0 and D(2) = 1.
Given a positive integer N
, your task is to identify all prime numbers less than or equal to N
.
A prime number is a natural number greater than 1 that has no po...
Identify all prime numbers less than or equal to a given positive integer N.
Iterate from 2 to N and check if each number is prime
Use the Sieve of Eratosthenes algorithm for better efficiency
Optimize by only checking up to the square root of N for divisors
Identify and output the common strings present in both given arrays of lowercase alphabets for each test case.
The first line contains an integer 'T' representin...
The problem requires identifying and outputting common strings present in two arrays of lowercase alphabets for each test case.
Iterate through the elements of the second array and check if they are present in the first array.
Use a hash set or map to efficiently check for common elements.
Return the common strings in the order they appear in the second array.
Round duration - 60 Minutes
Round difficulty - Medium
This round had 1 question from DSA particulary Trees and after that some questions from OOPS were asked.
Given a binary tree with N
nodes, your task is to output the Spiral Order traversal of the binary tree.
The input consists of a single line containing elem...
Implement a function to return the spiral order traversal of a binary tree.
Traverse the binary tree level by level, alternating the direction of traversal.
Use a queue to keep track of nodes at each level.
Append nodes to the result list based on the traversal direction.
Handle null nodes appropriately to maintain the spiral order.
Example: Input: 1 2 3 -1 -1 4 5, Output: 1 3 2 4 5
Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.
Abstract class can have constructor, fields, and methods, while interface can only have constants and abstract methods.
A class can extend only one abstract class, but can implement multiple interfaces.
Abstract classes are used to provide a common base for subclasses, while interfaces are used to define a contr...
The static keyword in Java is used to create class-level variables and methods that can be accessed without creating an instance of the class.
Static variables are shared among all instances of a class.
Static methods can be called without creating an object of the class.
Static blocks are used to initialize static variables.
Example: public static int count = 0;
Constructor is a special method used to initialize objects, while a method is a regular function that performs a specific task.
Constructors are called automatically when an object is created, while methods need to be called explicitly.
Constructors have the same name as the class, while methods have unique names.
Constructors do not have a return type, while methods have a return type.
Example: Constructor - public ClassN...
Round duration - 60 minutes
Round difficulty - Medium
This round had 2 questions from DSA and after that some basic HR questions were asked.
Given an infinite supply of coins of varying denominations, determine the total number of ways to make change for a specified value using these coins. If it's not possible to make...
The task is to find the total number of ways to make change for a specified value using given denominations.
Use dynamic programming to solve this problem efficiently.
Create a 1D array to store the number of ways to make change for each value from 0 to the target value.
Iterate through the denominations and update the array based on the current denomination.
The final answer will be the value at the target index of the ar
Determine if a given string 'S' is a palindrome, considering only alphanumeric characters and ignoring spaces and symbols.
The string 'S' should be evaluated in a case...
Check if a given string is a palindrome after removing special characters, spaces, and converting to lowercase.
Remove special characters and spaces from the input string
Convert the string to lowercase
Check if the modified string is a palindrome by comparing characters from start and end
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
Nagarro interview questions for designations
Get interview-ready with Top Nagarro Interview Questions
I was interviewed before Sep 2020.
Round duration - 45 Minutes
Round difficulty - Easy
The round was conducted at 12 in the college campus. It was a pen and paper based coding round and had 2 coding questions for which we had to write the best approach.
Given an array Arr
consisting of N integers, your task is to find the equilibrium index of the array.
An index is considered as an equilibrium index if the sum of elem...
Find the equilibrium index of an array where sum of elements on left equals sum on right.
Iterate through the array and calculate the total sum of all elements.
Then iterate again and keep track of the left sum and right sum, checking for equilibrium.
Return the index when left sum equals right sum, or -1 if no equilibrium index found.
You are given a singly linked list of integers. Your task is to sort the linked list using the merge sort algorithm.
Merge Sort is a divide and conq...
Implement merge sort algorithm to sort a singly linked list of integers.
Divide the linked list into two halves using slow and fast pointers.
Recursively sort the two halves.
Merge the sorted halves using a merge function.
Handle base cases like empty list or single node list.
Ensure the termination of the linked list with -1 at the end.
Round duration - 45 Minutes
Round difficulty - Easy
There were 2 coding questions and we had to write the best approach for the questions.
Convert a given string 'S' into its equivalent representation based on a mobile numeric keypad sequence. Using the keypad layout shown in the reference, output the seque...
Convert a given string into its equivalent representation based on a mobile numeric keypad sequence.
Create a mapping of characters to their corresponding numeric keypad sequences.
Iterate through the input string and append the numeric sequence for each character to the output.
Handle lowercase characters only, ignore special characters, capital letters, and spaces in the input string.
You are provided with a string 'STR'
that consists of lowercase English letters ranging from 'a' to 'z'. Your task is to determine all non-empty possible subsequen...
Generate all possible subsequences of a given string.
Use recursion to generate all possible subsequences by including or excluding each character in the string.
Maintain a current index to keep track of the characters being considered.
Append the current character to each subsequence generated so far.
Recursively call the function with the next index to include the next character in subsequences.
Round duration - 40 minutes
Round difficulty - Easy
The interviewer asked me questions from arrays, strings and linked list.
Given an array of integers with 'N' elements, determine the length of the longest subsequence where each element is greater than the previous element. This...
Find the length of the longest strictly increasing subsequence in an array of integers.
Use dynamic programming to keep track of the longest increasing subsequence ending at each element.
Initialize an array to store the lengths of the longest increasing subsequences.
Iterate through the array and update the lengths based on the previous elements.
Return the maximum length found in the array.
Given an integer N
, determine whether its binary representation is a palindrome.
The first line contains an integer 'T' representing the number of test cases.
The next 'T'...
Check if the binary representation of a given integer is a palindrome.
Convert the integer to binary representation.
Check if the binary representation is a palindrome by comparing it with its reverse.
Return true if it is a palindrome, false otherwise.
Tip 1 : Do at-least 200+ dsa problems from various topics.
Tip 2 : Make 2-3 projects and be well versed with their functionality.
Tip 3 : Practice aptitude questions and time yourself while doing the questions.
Tip 1 : Keep your resume short, try to make it one pager only.
Tip 2 : Mention only position specific projects, and if you have got a good academic score mention it on top.
I applied via Naukri.com and was interviewed in Aug 2020. There were 5 interview rounds.
Interfaces define a contract for classes to implement certain methods and properties.
Interfaces allow for polymorphism and loose coupling.
Classes can implement multiple interfaces.
Interfaces cannot be instantiated on their own.
Interfaces can have default method implementations.
Interfaces can be used to enforce design patterns like the adapter pattern.
I applied via Naukri.com and was interviewed in Sep 2020. There was 1 interview round.
API controller class instance is generated when a request is made to the API endpoint.
API controller class is responsible for handling incoming requests and returning responses.
Instance of API controller class is generated by the ASP.NET Core framework when a request is made to the API endpoint.
API controller class instance is disposed of after the request has been processed.
API controller class can be customized and c
Top trending discussions
Some of the top questions asked at the Nagarro Software Developer interview -
The duration of Nagarro Software Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 40 interviews
5 Interview rounds
based on 70 reviews
Rating in categories
Associate Staff Engineer
2.9k
salaries
| ₹0 L/yr - ₹0 L/yr |
Staff Engineer
2.9k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Engineer
2.4k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
1.1k
salaries
| ₹0 L/yr - ₹0 L/yr |
Engineer
901
salaries
| ₹0 L/yr - ₹0 L/yr |
Deloitte
Cognizant
TCS
Accenture