Tip 1: Focus on mastering data structures, algorithms, and problem-solving to excel in Nagarro's technical interviews.
Tip 2: Showcase your passion for software development through personal projects and contributions to open-source projects
Tip 3: Research Nagarro's services and projects to tailor your interview responses and demonstrate your understanding of their work culture.
Tip 1: Highlight your strong programming skills, relevant projects, and contributions to showcase your expertise as a software developer.
Tip 2: Emphasize your problem-solving abilities, teamwork, and adaptability to align with Nagarro's values and requirements for the Associate Software Developer role



Let the price of Ninja Coin for 5 consecutive days is [4, 2, 3, 3, 7].
Then the span of Ninja Coin on the 0th day is 1 because we cannot move backward from day 0.
The span of Ninja Coin on the 1st day is 1 because the price on day 0 is 4 which is greater than 2, so the only day 1 is counted.
The span of Ninja Coin on the 2nd day is 2 because the price on day 2 and day 1 is less than or equal to 3 and then on day 0 price is 4 which is greater than 3, so we count day 2 and day 1.
The span of Ninja Coin on the 3rd day is 3 because the price on day 3, day 2, and day 1 is less than or equal to 3, and on day 0 price is 4 which is greater than 3, so we count day 3, day 2, and day 1.
The span of Ninja Coin on the 4th day is 5 because its value is higher than all previous days values.
Thus you should return an array/list [1, 1, 2, 3, 5].



Consider ARR = [1, 2, 3, 4, 4], the duplicate integer value present in the array is 4. Hence, the answer is 4 in this case.
A duplicate number is always present in the given array.


If you are asked to find the 7th prime number, it’ll be 17 because the first 7 prime numbers are 2, 3, 5, 7, 11, 13, 17.
Try to solve the problem in O(N log log N) + O(N).
1. Find the prime numbers up to MAX_SIZE using the Sieve of Eratosthenes.
Store all primes in a vector.
2. For a given number N, return the element at (N-1)th index in a vector.
3. Below is the implementation of the above approach:





Initially, he is at the first letter of the keyboard.
All letters are in lower-case English letters.
Let s = “perry”, keyboard = “qwertyuiopasdfghjklzxcvbnm”.
Now In this example, Francis will start from the first index and go to ‘p’, which will take 9 seconds, now from ‘p’ to ‘e’, the distance is of 7 indexes, from ‘e’ to ‘r’ the distance is 1, from ‘r’ to ‘r’ it will be zero, and from ‘r’ to ‘y’ the distance will be 2. Hence the total time taken is 9 + 7 + 1 + 0 + 2 = 19.
Hence the answer is 19.


For the below file system, the string S will be:
S = “dir\n\tsubdir1\n\t\tfile1.txt\n\t\tfile2.txt\n\tfile.txt”

dir
subdir1
file1.txt
file2.txt
file.txt
file2.txt has an absolute path “dir/subdir1/file2.txt” and file.txt has path “dir/file.txt”.
The absolute file path length is the length of this string.
So absolute path length for file file2.txt will be the length of string “dir/subdir1/file2.txt” which is 21.
If there is no file in the system, return 0.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?