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

SDE - Intern

Nagarro Software
upvote
share-icon
2 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, OOPS, DBMS, OS, Computer Networks, Algorithms, System Design.
Tip
Tip

Tip 1 : Practice atleast 250 interview-centric DSA problems.
Tip 2 : Do atleast 2 application-based projects.
Tip 3 : Read interview experiences of the organisation you are preparing for.

Application process
Where: Campus
Eligibility: Above 7 CGPA, No Backlogs
Resume Tip
Resume tip

Tip 1 : Have atleast 2 application based projects on resume.
Tip 2 : Mention coding profiles like GFG, Leetcode, Codestudio, Codechef.

Interview rounds

01
Round
Hard
Online Coding Interview
Duration60 minutes
Interview date16 Mar 2022
Coding problem5

This round was held in afternoon.
Duartion : 1 hour
Consisted 25 aptitude ability and 15 CS fundamental objective problems.
There was negative marking for wrong answers.

1. Puzzle Question

How do we measure forty-five minutes using two identical wires, each of which takes an hour to burn? We have matchsticks with us. The wires burn non-uniformly.

2. Puzzle Question

An employee works for an employer for 7 days. The employer has a gold rod of 7 units. How does the employer pay to the employee, so that the number of employee’s rod units increases by one at the end of each day? The employer can make at most 2 cuts in the rod.

3. Puzzle Question

You have 5 jars of pills. Each pill weighs 10 grams, except for contaminated pills contained in one jar, where each pill weighs 9 grams. Given a scale, how could you tell which jar had the contaminated pills in just one measurement?

4. Puzzle Question

There are 1000 wine bottles. One of the bottles contains poisoned wine. A rat dies after one hour of drinking the poisoned wine. How many minimum rats are needed to figure out which bottle contains poison in hour.

5. Puzzle Question

There are 5 pirates, they must decide how to distribute 100 gold coins among them. The pirates have seniority levels, the senior-most is A, then B, then C, then D, and finally the junior-most is E. 

Rules of distribution are: 

The most senior pirate proposes a distribution of coins.
All pirates vote on whether to accept the distribution.
The distribution is approved if at least half of the pirates agree (including the proposer)
If the distribution is accepted, the coins are disbursed and the game ends.
If not, the proposer is thrown and dies, and the next most senior pirate makes a new proposal to begin the system again.
In case of a tie vote, the proposer can have the casting vote
Rules every pirate follows.

Every pirate wants to survive
Given survival, each pirate wants to maximize the number of gold coins he receives.

02
Round
Hard
Online Coding Test
Duration90 minutes
Interview date16 Mar 2022
Coding problem3

It was in evening.
It consisted of 3 DSA problems.

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

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).
Problem approach

There are n – 1 way for element 0 (this explains multiplication with n – 1).
Let 0 be placed at index i. There are now two possibilities, depending on whether or not element i is placed at 0 in return.

i is placed at 0: This case is equivalent to solving the problem for n-2 elements as two elements have just swapped their positions.
i is not placed at 0: This case is equivalent to solving the problem for n-1 elements as now there are n-1 elements, n-1 positions and every element has n-2 choices

Try solving now

3. Reverse Words In A String

Easy
10m average time
90% success
0/40
Asked in companies
Thought WorksFacebookApple

You are given a string 'str' of length 'N'.


Your task is to reverse the original string word by word.


There can be multiple spaces between two words and there can be leading or trailing spaces but in the output reversed string you need to put a single space between two words, and your reversed string should not contain leading or trailing spaces.


Example :
If the given input string is "Welcome to Coding Ninjas", then you should return "Ninjas Coding to Welcome" as the reversed string has only a single space between two words and there is no leading or trailing space.
Problem approach

Initially, reverse the individual words of the given string one by one, for the above example, after reversing individual words the string should be “i ekil siht margorp yrev hcum”.
Reverse the whole string from start to end to get the desired output “much very program this like i” in the above example.

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
SDE - Intern
2 rounds | 4 problems
Interviewed by Nagarro Software
1008 views
1 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 4 problems
Interviewed by Nagarro Software
1006 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 4 problems
Interviewed by Nagarro Software
0 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Nagarro Software
869 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15606 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15500 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10216 views
2 comments
0 upvotes