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

SDE - Intern

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

Interview preparation journey

expand-icon
Preparation
Duration: 8 months
Topics: Data Structures, OOPS, Dynamic Programming, Algorithms, Operating Systems
Tip
Tip

Tip 1 : Be consistent
Tip 2 : Stay Motivated 
Tip 3 : Practice more and more questions on coding platforms and maintain a proper ratio between levels of questions

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Have some projects on your resume with proper links
Tip 2 : Put only those things on the resume which you can confidently explain

Interview rounds

01
Round
Easy
Online Coding Interview
Duration120 minutes( 30 + 90 )
Interview date16 Mar 2022
Coding problem3

Timing - 4 pm to 4.30 pm (Aptitude)
4.30 pm to 6 pm(Coding test)

1. Reverse String Word Wise

Moderate
0/80
Asked in companies
BarclaysInnovaccerAmazon

Reverse the given string word-wise. The last word in the given string should come at 1st place, the last-second word at 2nd place, and so on. Individual words should remain as it is.

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

2. Distributing Coins

Moderate
45m average time
55% success
0/80
Asked in companies
AppleUberWalmart

You are given the ‘ROOT’ of a binary tree with ‘N’ nodes where each node in the tree has some coins, and there are ‘N’ coins total. In one move, we may choose two adjacent nodes and move one coin from one node to another.

Your task is to return the number of moves required to make every node have exactly one coin.

Note:

A move may be from parent to child or from child to parent.

For example,

Given ‘ROOT’ = [2,-1,0,-1,-1]

The tree would look like this : 

The answer would be 1, because the root node will transfer 1 coin to its right child. Thus both nodes have the same number of coins now.
Problem approach

In this case, to calculate the number of ways to distribute m unique mangoes amongst n identical people, we just need to multiply the last expression ^m^+^n^-^1C_n_-_1 we calculated in Case 1 by m! 
So our final expression for this case is ^m^+^n^-^1C_n_-_1*m!

Try solving now

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

One obvious approach to solve this problem would be to sort the input string and then traverse through the sorted string to find the character which is occurring maximum number of times

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