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

Associate Engineer

Nagarro Software
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 Months
Topics: OOPS, DBMS, Data structure and algorithm, operating system, Aptitude, CN
Tip
Tip

Tip 1 : be confident
Tip 2 : revise well before the interview
Tip 3 : focus on fundamentals too.

Application process
Where: Campus
Eligibility: 7 cgpa
Resume Tip
Resume tip

Tip 1 : should be one page long only
Tip 2 : Have some projects on your resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration240 Minutes
Interview date16 Aug 2021
Coding problem3

aptitude and codding MCQ: The duration of this round was 60 minutes.
The test consists of 25 MCQs of aptitude and 15 DSA questions revolving around topics like stacks, queues, trees, graphs, and time complexities. the score of this round matters only for qualifying for the next round.
The test was divided into 2 sections (SD profile and CSD profile). For the SD profile, there were 3 DSA questions with medium difficulty, and for the CSD profile, there were 2 DSA questions of hard difficulty (Graphs + DP).
Based on the number of questions we solve, we get the interview invites for different profiles.

1. Sort Array of 0s and 1s.

Easy
10m average time
90% success
0/40
Asked in companies
WalmartCapegemini Consulting India Private LimitedCoditas

You are given an array ‘A’ of size ‘N’ containing only 0s and 1s. You have to sort the array by traversing the array only once.

For Example:
For the following array:
[0 1 1 1 0 0 1]

The output should be [0 0 0 1 1 1 1].
Note:
You have to sort the array in place.
Try solving now

2. 0 1 Knapsack

Easy
15m average time
85% success
0/40
Asked in companies
DelhiveryTwitterWalmart

A thief is robbing a store and can carry a maximal weight of W into his knapsack. There are N items and the ith item weighs wi and is of value vi. Considering the constraints of the maximum weight that a knapsack can carry, you have to find and return the maximum value that a thief can generate by stealing items.

Try solving now

3. Divisible Set

Moderate
0/80
Asked in companies
UberSoft SuaveNagarro Software

You are given an array of distinct numbers ‘arr’ of size 'n'.


Your task is to return the largest subset of numbers from ‘arr’, such that any pair of numbers ‘a’ and ‘b’ from the subset satisfies the following: a % b == 0 or b % a == 0.


A subset is nothing but any possible combination of the original array


Example:
Input: ‘arr’ = [1, 16, 7, 8, 4]

Output: [1, 4, 8, 16].

Explanation: In the set {1, 4, 8, 16}, you can take any pair from the set, and either one of the elements from the pair will divide the other.

There are other possible sets, but this is the largest one.
Try solving now
02
Round
Medium
Video Call
Duration15 minutes
Interview date31 Aug 2021
Coding problem2

Explain your written code of the previous round. If there is any error, find it, and correct it. If your code is not 
optimize and not space-efficient then Give an optimized & efficient solution to your written code.
After the written code explanation, he asked 2 coding questions

1. Longest Sub-string With K Distinct Characters

Easy
15m average time
85% success
0/40
Asked in companies
AmazonCodenationLifesight

You are given a string 'S' of length 'N' consisting of lowercase English alphabet letters. You are also given a positive integer 'K'.

Now, a substring of this string is good if it contains at most 'K' distinct characters. A string 'X' is a substring of string 'Y' if it can be obtained by deletion of several continuous elements(possibly zero) from the beginning and the end from the string 'Y'.

Your task is to return the maximum size of any good substring of the string 'S'.

Example:
‘S’ = “bacda” and ‘K’ = 3.

So, the substrings having at most ‘3’ distinct characters are called good substrings. Some possible good substrings are:
1. “bac”
2. “acd”
3. “acda”

The substring “acda” is the largest possible good substring, as we cannot get any other substring of length 5 or more having distinct characters less than or equal to ‘3’. Thus, you should return ‘4’ as the answer.
Try solving now

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

Try solving now
03
Round
Easy
HR Round
Duration20 Minutes
Interview date1 Sep 2021
Coding problem1

1. Basic HR Questions

Why Nagarro?
Relocation Problems?
Technical areas of interest.

tell me about your projects


 

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
Associate Engineer
2 rounds | 3 problems
Interviewed by Nagarro Software
0 views
0 comments
0 upvotes
company logo
Associate Engineer
2 rounds | 2 problems
Interviewed by Nagarro Software
918 views
0 comments
0 upvotes
company logo
Associate Engineer
3 rounds | 8 problems
Interviewed by Nagarro Software
1044 views
0 comments
0 upvotes
company logo
Associate Engineer
3 rounds | 3 problems
Interviewed by Nagarro Software
898 views
0 comments
0 upvotes