Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Nagaaro interview experience Real time questions & tips from candidates to crack your interview

Trainee Technology

Nagaaro
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 month
Topics: Data Structure, OOPS, Competitive programming, Aptitude
Tip
Tip

Tip 1 : Must go through previously asked interview coding questions.
Tip 2 : Good knowledge of main topics of Data structure and algorithm.
Tip 3 : Clear concepts of OOPS.
Tip 4 : Be clear with your Roles and responsibility of your final year project.

Application process
Where: Other
Eligibility: NO
Resume Tip
Resume tip

Tip 1 : Mention the skills for which you are confident
Tip 2 : Mention all your Projects

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 Minutes
Interview date21 Jan 2020
Coding problem2

Online test was divided into two sections- Aptitude and Data structure algorithm as It was on Mettl platform so I had to do some pre-configuration on my system,
there is no negative point to mention, my test process was smooth and one very positive point is that they emailed me the result of test just after 6 hours of test in form of interview invite.

1. Puzzle

There were Questions related to series, analogy, profit loss etc.
Mostly aptitude questions were based on directly formula.

Problem approach

Tip 1: You must remember the formulas of problems as much as you can. 
Tip 2: Clear your basics for solving aptitude questions. 
Tip 3: Give practice tests

2. Data Structure and Algorithm based Questions

Mostly questions were based on the complexity of algorithm (as quick, merge, heap sort).

Problem approach

Tip 1: Learn and remember the complexity of each sorting algorithm.
Tip 2: Give DSA Mcqs practice test at any online DSA site as I chose GFG

02
Round
Medium
Coding Test - Pen and paper
Duration75 minutes
Interview date1 Feb 2020
Coding problem3

For this round they invited me on their own office in Gurugram. 
There were three coding questions.
Question-level was as one is easy, one medium, and other difficult

1. Inplace rotate matrix 90 degree

Easy
12m average time
80% success
0/40
Asked in companies
OLX GroupOracleSamsung

You are given a square matrix of non-negative integers of size 'N x N'. Your task is to rotate that array by 90 degrees in an anti-clockwise direction without using any extra space.

For example:

For given 2D array :

    [    [ 1,  2,  3 ],
         [ 4,  5,  6 ],
         [ 7,  8,  9 ]  ]

After 90 degree rotation in anti clockwise direction, it will become:

    [   [ 3,  6,  9 ],
        [ 2,  5,  8 ],
        [ 1,  4,  7 ]   ]
Problem approach

If you only have the knowledge of matrix rotation clockwise 90 degrees and you can easily solve this.
Note- Refer the 90degree clockwise rotation of matrix

Let main Matrix size of row and column be n=3. and start row index is 1, start column index is 1 of submatrix
i = start row index of submatrix , j = start column index of submatrix, n = n- size of submatrix

During first iteration – 
a[i][j] = Element at first index (leftmost corner top)= 1.
a[j][n-1-i]= Rightmost corner top Element = 3.
a[n-1-i][n-1-j] = Rightmost corner bottom element = 9.
a[n-1-j][i] = Leftmost corner bottom element = 7.
Move these elements in the clockwise direction. 
During second iteration – 
a[i][j] = 2.
a[j][n-1-i] = 6.
a[n-1-i][n-1-j] = 8.
a[n-1-j][i] = 4. 
Similarly, move these elements in the clockwise direction.

Try solving now

2. Find Pair With Smallest Difference

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

Given two unsorted arrays of non-negative integers, 'arr1' and 'arr2' of size 'N' and 'M', respectively. Your task is to find the pair of elements (one from each array), such that their absolute (non-negative) difference is the smallest, and return the difference.

Example :
N = 3, arr1 = [10, 20, 30]
M = 2, arr2 = [17, 15]
The smallest difference pair is (20, 17) with an absolute difference of 3. So, the answer is 3.
Note :
Both the arrays are unsorted, and all array elements are non-negative integers.
Problem approach

My Algorithm: 

initialize d=INTEGER.MAXLENGTH, i, j, sum1=0, p1, p2; 

for i=0 to 
sum1=0; 

for j=0 to 
sum1+=a1[i]+a2[j]; 

difference=sum1-sum ; 

if(difference
{d=difference; //update difference 

p1=a1[i];p2=a2[j]; //update pair value element 

}

Try solving now

3. Count Frequency

Easy
15m average time
85% success
0/40
Asked in companies
AmazonTata Consultancy Services (TCS)Tech Mahindra

You are given a string 'S' of length 'N', you need to find the frequency of each of the characters from ‘a’ to ‘z’ in the given string.

Example :

Given 'S' : abcdg
Then output will be : 1 1 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
Problem approach

Hint: I used the hashMap technique 

Algorithm: 

Step 1- char ar[] = str.split(“//”) /*split string by space and add into array */

Step 2- HashMap hp = new HashMap(); 

Step 3- for loop 0 to 
If hashmap does not contains a string (word) then enter that word into hashmap as key and put its value as 1;

else 

/*increase the value of a particular key which is already present in the hash map (increase the frequency if word again occurred in the array); */

Try solving now
03
Round
Easy
HR Round
Duration30 Minutes
Interview date1 Feb 2020
Coding problem1

After 30m of TR I appeared for the HR round on the same day and it had finished in just 20m with some basics questions about me, my career goals and tech skills

1. Basic HR questions

1. Tell me something about yourself in brief?

2. In which language did you code in your coding round?

3. From which university you are graduating?

4. What is aktu rank?

5. Which rating will you give yourself at your own class level?

6. Are you placed anywhere?

7. Did you visit nagarro site?

8. How many rejections did you get? (i said one )

9. What was wrong in your first rejection?

10. When will you join?

11. Do you want to ask any questions? (i asked one question).

Problem approach

Tip 1: Be calm, honest and Confident.
Tip 2: Well prepare your introduction.
Tip 3: Read somethings about the company for which you are giving the interview.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What can be the possible extension for the HTML5 file?

Choose another skill to practice
Start a Discussion
Similar interview experiences
company logo
Trainee Technology
4 rounds | 9 problems
Interviewed by Nagaaro
1111 views
0 comments
0 upvotes
company logo
Trainee Technology
4 rounds | 7 problems
Interviewed by Nagaaro
668 views
0 comments
0 upvotes
company logo
Trainee Technology
3 rounds | 5 problems
Interviewed by Nagaaro
821 views
0 comments
0 upvotes
company logo
Trainee Technology
3 rounds | 4 problems
Interviewed by Nagaaro
614 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Trainee Technology
2 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
1167 views
0 comments
0 upvotes
company logo
Trainee Technology
2 rounds | 4 problems
Interviewed by HCL Technologies
4192 views
0 comments
0 upvotes