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

Fullstack Developer

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

Interview preparation journey

expand-icon
Preparation
Duration: 14 months
Topics: Data Structures, Algorithms, Basics of C++ language, OOPS, OS, DBMS, Greedy algorithms, Dynamic Programming, HashMaps, HashSet
Tip
Tip

Tip 1 : Focus more on data structures and algorithms and never burn out as it will take time learn.
Tip 2 : Work on at least one development technology. Be it web development or app development or ML etc
 

Application process
Where: Campus
Eligibility: Above 7 CGPA, Plus if have any projects on resume.
Resume Tip
Resume tip

Tip 1 : For Freshers please concise all matter of your resume in one page.
Tip 2 : Try to use STAR pattern while describing your project which is Situation, Task, Action and Result.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date16 Mar 2022
Coding problem3

It was an online round on platform Mettl and it was of 90 minutes. Round begin by registering on platform and showing identity card of college and all formalities were fulfilled.

1. Most Frequent Word

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

You are given two strings 'A' and 'B' of words. Your task is to find out the most frequent and lexicographically smallest word in string 'A', which is not present in string 'B'. If no such word is present in 'A', then return -1.

Note:

1. A word is a sequence of one or more lowercase characters.

2. Words are separated by a single whitespace character.
Example:
For the given string 'A' = “coding ninjas coding ninjas” and 'B' = “data structures and algorithms”, so both the word 'coding' and 'ninjas' are not present in string 'B' and occur two times each, but the word “coding” is lexicographically smaller than the word “ninjas”. So the answer is “coding”.
Problem approach

Step 1 : Made a HashMap which stores the frequency of every character in the string
Step 2 : iterated over the map and find out the maximum frequency for it.
Step 3 : again iterated over map and find out the smallest character having max frequency.

Try solving now

2. Count derangements

Moderate
35m average time
60% success
0/80
Asked in companies
AmazonInfo Edge India (Naukri.com)OLX Group

A Derangement is a permutation of ‘N’ elements, such that no element appears in its original position. For example, an instance of derangement of {0, 1, 2, 3} is {2, 3, 1, 0}, because 2 present at index 0 is not at its initial position which is 2 and similarly for other elements of the sequence.

Given a number ‘N’, find the total number of derangements possible of a set of 'N’ elements.

Note:
The answer could be very large, output answer %(10 ^ 9 + 7).
Try solving now

3. Distribute N candies among K people

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

Sanyam has ‘N’ candies, he wants to distribute that into ‘K’ of his friends. He made his ‘K’ friends stand in line, in increasing order of his likeness. Not being so smart he gives 1 candy to the first friend, 2 to the second person, and so on till the kth person. In the next turn, the first person gets ‘K + 1’ candies, the second person gets ‘K + 2’ candies, and so on.

While distributing the candies, if at a turn, the number of candies to be given to a friend is less than the required candies, then that friend gets all the remaining candies and Sanyam stops the distribution.

Your task is to find the total number of candies every person has at the end.

Problem approach

it was a basic permutation and combination problem of using binomial coefficients.

Try solving now

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
CSD
2 rounds | 3 problems
Interviewed by Nagarro Software
1379 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Nagarro Software
936 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Nagarro Software
1221 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Nagarro Software
758 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Fullstack Developer
6 rounds | 5 problems
Interviewed by Microsoft
2280 views
0 comments
0 upvotes
company logo
Fullstack Developer
2 rounds | 2 problems
Interviewed by Samsung
2209 views
0 comments
0 upvotes
company logo
Fullstack Developer
2 rounds | 2 problems
Interviewed by Amdocs
1861 views
0 comments
0 upvotes