i
Nagarro
Filter interviews by
Intents in Android are messaging objects used to request an action from another app component.
Intents are used to start activities, services, and broadcast receivers in Android.
There are two types of intents: explicit intents and implicit intents.
Explicit intents specify the component to start by name, while implicit intents specify the action to perform.
Example: Intent intent = new Intent(this, SecondActivity.cla...
A binary search tree is a data structure in which each node has at most two children, with the left child being less than the parent and the right child being greater.
Nodes are arranged in a hierarchical order where each node has a value and two child nodes.
Left child node has a value less than its parent node, while the right child node has a value greater than its parent node.
Binary search trees allow for effici...
Cannot answer without knowing the java program
Need to know the code to determine output
Output can vary based on input and logic
Can provide answer if given the program
You are given a list of N
strings called A
. Your task is to determine whether you can form a given target string by combining one or more strings from A
.
The strings from A
ca...
Given a list of strings, determine if a target string can be formed by combining one or more strings from the list.
Iterate through all possible combinations of strings from the list to check if they can form the target string.
Use recursion to try different combinations of strings.
Keep track of the current position in the target string and the strings used so far.
Return true if the target string can be formed, fals...
What people are saying about Nagarro
Given an integer array ARR
of size N
containing only integers 0 and 1, implement a function to sort this array. The solution should scan the array only once without using any...
Sort an array of 0s and 1s in linear time without using additional arrays.
Use two pointers approach to swap 0s to the left and 1s to the right.
Maintain two pointers, one for 0s and one for 1s, and iterate through the array.
Swap elements at the two pointers based on the values encountered.
Continue until the two pointers meet in the middle of the array.
Given an integer N
, determine if its binary representation is a palindrome.
The first line contains a single integer ‘T’ representing the n...
Check if the binary representation of a number 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.
Find the number of trailing zeroes in the factorial of a given number N
.
The first line contains an integer T
representing the number of test cases.
Each of the ...
Count the number of trailing zeros in the factorial of a given number.
To find the number of trailing zeros in N!, count the number of factors of 5 in the prime factorization of N.
Each factor of 5 contributes to a trailing zero in the factorial.
For example, for N=10, there are 2 factors of 5 in the prime factorization (5 and 10), so there are 2 trailing zeros.
You are given a number of stairs, N
. Starting at the 0th stair, you need to reach the Nth stair. Each time you can either climb one step or two steps. Y...
The problem involves finding the number of distinct ways to climb to the Nth stair by taking one or two steps at a time.
Use dynamic programming to solve this problem efficiently.
The number of ways to reach the Nth stair is the sum of the number of ways to reach the (N-1)th stair and the (N-2)th stair.
Handle large inputs by taking modulo 10^9+7 to avoid overflow.
Example: For N=3, there are 3 ways to climb to the th...
Determine whether it is possible to partition an array ARR
into K
subsets, each having an equal sum.
ARR = [3, 5, 2, 4, 4], K = 2
tru...
Yes, it is possible to partition an array into K subsets with equal sum.
Check if the total sum of the array is divisible by K.
Use backtracking to try all possible combinations of subsets.
Keep track of visited elements to avoid repetition.
Example: ARR = [3, 5, 2, 4, 4], K = 2. Possible subsets: [4, 5] and [2, 3, 4].
You are given a doubly linked list with 'N' nodes, where each node can deviate at most 'K' positions from its actual position in the sorted list. Your...
Sort a doubly linked list with nodes that can deviate at most K positions from their actual position in the sorted list.
Iterate through the doubly linked list and maintain a window of size K+1 to sort the elements within the window.
Use insertion sort within the window to sort the elements efficiently.
Repeat the process until the entire list is sorted.
Time complexity can be optimized to O(N*log(K)) using a priority...
I applied via Campus Placement and was interviewed in Nov 2024. There were 3 interview rounds.
45 questions, 50 mins
3 questions esy to medium, 75 minutes
Access specifiers in Python control the visibility and accessibility of class attributes and methods.
Public: Attributes and methods are accessible from anywhere. Example: class MyClass: def my_method(self): pass
Protected: Attributes and methods are accessible within the class and its subclasses. Indicated by a single underscore. Example: class MyClass: _protected_var = 5
Private: Attributes and methods are accessible on...
I appeared for an interview in Mar 2025, where I was asked the following questions.
Objects are key-value pairs with string keys, while Maps allow any data type as keys and maintain insertion order.
Objects can only have string or symbol keys, while Maps can have keys of any type (e.g., objects, functions).
Maps maintain the order of elements based on insertion, whereas objects do not guarantee order.
Maps have a size property that returns the number of key-value pairs, while objects require manual count...
Custom hooks can be created as functions or components, each serving different purposes in React.
Custom hooks as functions: They encapsulate reusable logic and can use other hooks internally.
Example: function useFetch(url) { const [data, setData] = useState(null); useEffect(() => { fetch(url).then(...); }, [url]); return data; }
Custom hooks as components: They can manage state and lifecycle methods but are less comm...
The inset property in CSS is a shorthand for setting the top, right, bottom, and left properties simultaneously.
The inset property can take values in pixels, percentages, or other units, e.g., inset(10px 20px 30px 40px).
It can also accept the 'auto' value, e.g., inset(auto).
When used, it positions an element relative to its nearest positioned ancestor.
The inset property is particularly useful for creating responsive la...
useTransition and useDeferredValue are hooks for managing UI transitions and deferred updates in React.
useTransition allows you to mark updates as non-urgent, improving user experience during state changes.
Example: const [isPending, startTransition] = useTransition();
useDeferredValue lets you defer a value update until the browser is idle, preventing blocking UI.
Example: const deferredValue = useDeferredValue(value);
Bo...
Meta tags provide metadata about the HTML document, influencing SEO and responsive design, including viewport settings.
Meta tags are placed in the <head> section of an HTML document.
They provide information like character set, author, and description.
Example: <meta name='description' content='This is a sample webpage.'>
Viewport meta tag controls layout on mobile browsers.
Example: <meta name='viewport' co...
CSS can be used to adapt layouts for portrait and landscape orientations using media queries and flexible units.
Media Queries: Use CSS media queries to apply different styles based on the orientation. Example: `@media (orientation: landscape) { /* styles */ }`.
Flexbox: Utilize flexbox properties to create responsive layouts that adjust based on the screen orientation. Example: `display: flex; flex-direction: row;` for ...
MCQ related to Quantitative Analysis
MCQ related to Android
Medium level DSA. 3 Questions in 1 hr
I appeared for an interview in Apr 2025, where I was asked the following questions.
My name is Alex Johnson, a dedicated professional with a passion for helping clients secure their dream homes through tailored loan solutions.
Alex is a common name, often associated with leadership and creativity.
Johnson is a widely recognized surname, indicating a strong family heritage.
I have a background in finance, which enhances my ability to assist clients effectively.
Yes, I am eligible for the Home Loan Executive position due to my relevant skills and experience in finance and customer service.
I have over 3 years of experience in the banking sector, specifically in loan processing.
I possess strong communication skills, which help in effectively explaining loan products to clients.
I am familiar with various home loan products and eligibility criteria, ensuring accurate assessments.
I...
I applied via Naukri.com and was interviewed in Mar 2024. There were 2 interview rounds.
This was mix of aptitude test with questions related to .Net MVC, CSS, HTML and OOPS
Middleware in .Net Core is a software component that acts as a bridge between an application's request processing pipeline and the server.
Middleware components are executed in the order they are added to the pipeline.
They can perform tasks like authentication, logging, error handling, etc.
Middleware can be added using the 'UseMiddleware' method in the 'Configure' method of Startup class.
var keyword has function scope, let keyword has block scope. Closure function is a function defined inside another function.
var keyword has function scope, let keyword has block scope
Variables declared with var are hoisted to the top of their function, let variables are not hoisted
Closure function is a function defined inside another function, has access to the outer function's variables
Virtual DOM is a lightweight copy of the actual DOM, useState is a hook for managing state in functional components, and Hooks are functions that let you use state and other React features in functional components.
Virtual DOM is a lightweight copy of the actual DOM that React uses to improve performance by updating only the necessary parts of the actual DOM.
useState is a hook in React that allows functional components ...
Triggers in SQL are special stored procedures that are automatically executed when certain events occur in a database. Indexes in SQL are used to speed up the retrieval of data from tables.
Types of triggers: DML triggers (insert, update, delete), DDL triggers (create, alter, drop), and Logon triggers.
Indexes in SQL are used to quickly retrieve data from tables. Types of indexes include clustered, non-clustered, unique,...
I applied via Job Portal and was interviewed in Aug 2024. There were 3 interview rounds.
Its mandatory test even for experience people
I applied via Naukri.com and was interviewed in Dec 2023. There were 2 interview rounds.
1. Find longest repeating character from back.
2. Find all non-duplicates in an array and return in sorted manner.
The class will have to provide its own implementation of the conflicting default method.
When implementing multiple interfaces with the same default method, a class must provide its own implementation of the conflicting method.
The class cannot inherit the default implementation from both interfaces.
The class can choose to implement one of the default methods and provide its own implementation for the other.
Alternatively...
Terminal operations in streams produce a result or a side effect, while intermediate operations transform or filter the data.
Terminal operations are the final operations in a stream pipeline, such as forEach, collect, or reduce.
Intermediate operations are operations that can be chained together, such as filter, map, or sorted.
Terminal operations trigger the processing of the stream and produce a result or a side effect...
try vs try-with-resources
The 'try' statement is used to define a block of code to be tested for exceptions.
The 'try-with-resources' statement is used to automatically close resources that implement the AutoCloseable interface.
Try-with-resources is more concise and less error-prone compared to try-catch-finally.
Try-with-resources can handle multiple resources in a single statement.
Iterator is a universal interface for iterating over a collection, while ListIterator is a specialized interface for iterating over lists.
Iterator can only move forward, while ListIterator can move in both directions.
ListIterator has additional methods like previous(), hasPrevious(), and add().
ListIterator is only available for List implementations, while Iterator can be used with any collection.
Projections in Spring Data JPA allow customizing the shape of the data returned from a query.
Projections are used to retrieve specific fields or a subset of fields from an entity.
They help in reducing the amount of data transferred over the network.
Projections can be defined using interfaces or classes.
They can be used with both JPQL and native SQL queries.
Projections can be used to fetch related entities as well.
The two types of compiler in Angular are JIT (Just-in-Time) compiler and AOT (Ahead-of-Time) compiler.
JIT compiler compiles the code at runtime in the browser.
AOT compiler compiles the code before the application is deployed to the browser.
JIT compilation is slower but allows for faster development and debugging.
AOT compilation is faster but requires additional build step before deployment.
Data binding in Angular allows automatic synchronization of data between the model and the view.
Interpolation: {{ }} - binds data from the component to the view
Property binding: [] - binds data from the component to an element property
Event binding: () - binds an event from the view to a method in the component
Two-way binding: [()] - combines property and event binding to achieve two-way data flow
Promises are used for asynchronous programming in JavaScript, while Observables are used for reactive programming.
Promises represent a single value that may be available now or in the future.
Observables represent a stream of values that can be emitted over time.
Promises are eager, meaning they start executing as soon as they are created.
Observables are lazy, meaning they only start executing when subscribed to.
Promises...
Constructor is a special method used to initialize an object, while ngOnInit is a lifecycle hook in Angular.
Constructor is used to create and initialize an object of a class.
ngOnInit is a lifecycle hook in Angular that is called after the component is initialized.
Constructor is defined using the constructor keyword, while ngOnInit is a method defined in the component class.
Constructor is called only once during the cre...
Inline templates are used for small, simple templates, while external templates are used for larger, complex templates.
Inline templates are defined within the component's TypeScript file using the template property.
External templates are defined in separate HTML files and linked to the component using the templateUrl property.
Inline templates are useful for small components or when the template is simple and doesn't re...
HttpClient module is used for http calls in Angular.
HttpClient module is part of the @angular/common/http package.
It provides a simplified API for making HTTP requests.
It supports various HTTP methods like GET, POST, PUT, DELETE, etc.
It also supports features like request/response headers, query parameters, error handling, etc.
Example: import { HttpClient } from '@angular/common/http';
I applied via Naukri.com and was interviewed in Apr 2024. There were 2 interview rounds.
It was related to Basic HTML and Node. Some questions are from regioning.
Query to fetch employee names with their total project allocations from three related tables.
Use SQL JOIN to combine Employee, Project, and Allocation tables.
Group results by employee ID to count projects per employee.
Example SQL query: SELECT e.name, COUNT(a.project_id) AS total_projects FROM Employee e LEFT JOIN Allocation a ON e.id = a.employee_id GROUP BY e.id;
LEFT JOIN ensures employees with no project allocations...
I applied via Naukri.com and was interviewed in Dec 2023. There were 4 interview rounds.
I applied via Approached by Company and was interviewed in Mar 2024. There were 2 interview rounds.
Some of the top questions asked at the Nagarro interview for freshers -
The duration of Nagarro interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 46 interview experiences
Difficulty level
Duration
based on 4.3k reviews
Rating in categories
Staff Engineer
3.3k
salaries
| ₹22.5 L/yr - ₹38 L/yr |
Associate Staff Engineer
3.3k
salaries
| ₹17 L/yr - ₹31 L/yr |
Senior Engineer
2.5k
salaries
| ₹6.3 L/yr - ₹19.9 L/yr |
Senior Software Engineer
1.3k
salaries
| ₹8.1 L/yr - ₹29.5 L/yr |
Software Engineer
1.1k
salaries
| ₹4.9 L/yr - ₹12.3 L/yr |
Deloitte
Cognizant
TCS
Accenture