Tech Mahindra interview experience Real time questions & tips from candidates to crack your interview

Graduate Engineer Trainee

Tech Mahindra
upvote
share-icon
5 rounds | 11 Coding problems

Interview preparation journey

expand-icon
Journey
In my second year, I did the course of competitive programming from Coding Ninjas which helped me to deep dive into DSA and then I start practicing problem on Codeforces, Codechef and leetcode.
Application story
I applied through on campus. it had 5 rounds.
Why selected/rejected for the role?
I have competitive programming experience that helps me in the interview. The level of Interview and test is not that much hard. Anyone with basics clear can easily crack it
Preparation
Duration: 3 months
Topics: DSA , Aptitude, OOPS, Networking, Operation system
Tip
Tip

Tip 1 : Do at least 2 projects
Tip 2 : Focus on CS fundamental

Application process
Where: Campus
Eligibility: 60% in Graduation
Resume Tip
Resume tip

Tip 1 : Good projects
Tip 2 : Mention your DSA skills

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date13 Oct 2022
Coding problem2

This round is all about AMCAT exam type.

1. OS Question

In which of the following cases dynamic arrays are not preferred?
a) If the size of the array is unknown
b) If the size of the array changes after few iterations
c) If the memory reallocation takes more time i.e. expensive
d) If the array holds less number of elements

2. OS Question

In special case, the time complexity of inserting/deleting elements at the end of dynamic array is __________
a) O (n)
b) O (n1/2)
c) O (log n)
d) O (1)

02
Round
Easy
Online Coding Test
Duration90 minutes
Interview date27 Oct 2022
Coding problem2

There are two coding questions and some pseudocode, and also the DSA concept. This level is not hard, it is of moderate level. At last, there is a psychometric test which is very simple and easy. the platform is AMCAT/SHL.

1. Cycle Detection in a Singly Linked List

Moderate
15m average time
80% success
0/80
Asked in companies
ThalesCIS - Cyber InfrastructureUrban Company (UrbanClap)

You are given a Singly Linked List of integers. Return true if it has a cycle, else return false.


A cycle occurs when a node's next points back to a previous node in the list.


Example:
In the given linked list, there is a cycle, hence we return true.

Sample Example 1

Problem approach

Traverse the list individually and keep putting the node addresses in a Hash Table. 
At any point, if NULL is reached then return false 
If the next of the current nodes points to any of the previously stored nodes in Hash then return true.

Try solving now

2. Cyclically Rotate An Array By One

Easy
10m average time
90% success
0/40
Asked in companies
IBMTech MahindraTata Consultancy Services (TCS)

You are given an integer array of size N. Your task is to rotate the array by one position in the clockwise direction.

For example :
If N = 5 and arr[ ] = {1, 2, 3, 4, 5} then output will be 5 1 2 3 4.

If N = 8 and arr[ ] = {9, 8, 7, 6, 4, 2, 1, 3} then output will be 3 9 8 7 6 4 2 1.
Problem approach

Following are steps. 
1) Store last element in a variable say x. 
2) Shift all elements one position ahead. 
3) Replace first element of array with x.

Try solving now
03
Round
Easy
Video Call
Duration30 minutes
Interview date3 Nov 2022
Coding problem2

1. Puzzle

Alok has three daughters. His friend Shyam wants to know the ages of his daughters. Alok gives him first hint. 
1) The product of their ages is 72. 
Shyam says this is not enough information Alok gives him a second hint. 
2) The sum of their ages is equal to my house number. 
Shyam goes out and looks at the house number and tells “I still do not have enough information to determine the ages”. 
Alok admits that Shyam can not guess and gives him the third hint 
3) The oldest girl likes strawberry ice cream. 
Shyam is able to guess after the third hint. Can you guess what are the ages of the three daughters?

2. Puzzle

There are 3 devils and 3 Priests.They all have to cross a river in a boat.Boat can only carry two people at a time.As long as there are equal number of devils and priests,then devils will not eat Priest.If the number of devils are greater than the number of priests on the same side of the river then devils will eat the priests.So how can we make all the 6 peoples to arrive to the other side safely?

04
Round
Easy
Video Call
Duration15 minutes
Interview date9 Nov 2022
Coding problem4

1. Basic HR Questions

Why you made projects based on Android?
Your role in projects?
Is growing of technology suitable for humans?
Would you prefer hard work or smart work?
Who is your inspiration?
What made you choose the IT sector?

2. Armstrong Number

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

You are given an integer ‘NUM’ . Your task is to find out whether this number is an Armstrong number or not.

A k-digit number ‘NUM’ is an Armstrong number if and only if the k-th power of each digit sums to ‘NUM’.

Example
153 = 1^3 + 5^3 + 3^3.

Therefore 153 is an Armstrong number.
Try solving now

3. DBMS Questions

Which of the following is not an example of DBMS?
a) MySQL
b) Microsoft Acess
c) IBM DB2
d) Google

4. Factorial of a Number

Moderate
25m average time
70% success
0/80
Asked in companies
SquadstackHCL TechnologiesSAP Labs

You are given an integer ‘N’. You have to print the value of Factorial of ‘N’. The Factorial of a number ‘N’ is defined as the product of all numbers from 1 to ‘N’.

For Example:
Consider if ‘N’ = 4, the Factorial of 4 will be the product of all numbers from 1 to 4, which is 1 * 2 * 3 * 4 = 24. Hence, the answer is 24.
Try solving now
05
Round
Easy
HR Round
Duration15 minutes
Interview date24 Nov 2022
Coding problem1

This round is all about yourself and some discussion. HR told you everything about the company.

1. Basic HR Questions

Tell me about yourself.

Why do you want to work for our company?

What are your greatest strengths and weaknesses?

How would you rate yourself on a scale of 1 to 10?

Here's your problem of the day

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

Skill covered: Programming

Which array operation has O(n) worst-case time complexity?

Choose another skill to practice
Similar interview experiences
company logo
Graduate Engineer Trainee
2 rounds | 3 problems
Interviewed by Tech Mahindra
849 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 18 problems
Interviewed by Tech Mahindra
824 views
0 comments
0 upvotes
company logo
Graduate Engineer Trainee
4 rounds | 22 problems
Interviewed by Tech Mahindra
464 views
0 comments
0 upvotes
company logo
Associate Software Engineer
5 rounds | 2 problems
Interviewed by Tech Mahindra
683 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Graduate Engineer Trainee
2 rounds | 5 problems
Interviewed by HCL Technologies
12625 views
3 comments
0 upvotes
company logo
Graduate Engineer Trainee
3 rounds | 4 problems
Interviewed by HCL Technologies
2300 views
0 comments
0 upvotes
company logo
Graduate Engineer Trainee
2 rounds | 2 problems
Interviewed by HCL Technologies
2350 views
0 comments
0 upvotes