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

SDE - 1

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

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: - Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : Write only relevant skills on resume and prepare for them.
Tip 2 : Practise atleast 150 Questions.
Tip 3 : Practise for Aptitude Topics too.

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

Tip 1 : Mention at least 2 Projects on your resume. 
Tip 2 : Never fake your resume.

Interview rounds

01
Round
Medium
Online Coding Test
Duration1 hour
Interview date10 May 2022
Coding problem3

- Morning time
- Environment was good.
- No
- Interviewer was good

1. N-th Term Of GP

Easy
15m average time
90% success
0/40
Asked in companies
MicrosoftDisney + HotstarCuemath

You are given the first term (A), the common ratio (R) and an integer N. Your task is to find the Nth term of the GP series.

The general form of a GP(Geometric Progression) series is A, A(R), A(R^2), A*(R^3) and so on where A is the first term of GP series

Note :

As the answer can be large enough, return the answer modulo 10^9 + 7.

Problem approach

s1- Sort to find the Nth term of the GP series.
s2- series is A, A(R), A(R^2), A*(R^3) and so on where A is the first term of GP series
s3- return the answer modulo 10^9 + 7.
s4- print an integer denoting the Nth term of GP in a separate line.

Try solving now

2. Remove String

Moderate
35m average time
60% success
0/80
Asked in companies
OpenTextAmazonSamsung

You have been given a linked list where each node has a single character. You have also been given a string 'STR'.

You have to remove all the occurrences of string STR from the linked list.

Note:
1. Start checking from the end of the linked list and not from the beginning. For example, if the linked list is ( a, b, a ,b, a)  and the string is equal to “aba” , then the answer should be (a b), not (b a).

2. After removing an occurrence check again for new formations.
Problem approach

s1- Start checking from the end of the linked list and not from the beginning. For example, if the linked list is ( a, b, a ,b, a) and the string is equal to “aba” , then the answer should be (a b), not (b a).
s2- Return the head of the linked list with updated character nodes after removing occurrences of the string.

Try solving now

3. Longest Increasing Subsequence

Moderate
30m average time
65% success
0/80
Asked in companies
IBMVisaOYO

For a given array with N elements, you need to find the length of the longest subsequence from the array such that all the elements of the subsequence are sorted in strictly increasing order.

Strictly Increasing Sequence is when each term in the sequence is larger than the preceding term.

For example:
[1, 2, 3, 4] is a strictly increasing array, while [2, 1, 4, 3] is not.
Problem approach

s1- [1, 2, 3, 4] is a strictly increasing array, while [2, 1, 4, 3] is not.
s2- line contains one integer representing the length of the longest increasing subsequence.
s3- subsequence sorted in strictly increasing order.

Try solving now
02
Round
Medium
Face to Face
Duration30 min
Interview date22 Jul 2022
Coding problem2

- Morning time
- Environment was good.
- No
- Interviewer was good

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

Problem approach

s1- It was a basic permutation and combination problem of using binomial cofficients.
s2- 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.

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 - 1
3 rounds | 3 problems
Interviewed by Nagarro Software
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Nagarro Software
937 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Nagarro Software
1222 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Nagarro Software
759 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58238 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes