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

Trainee Engineer

Tech Mahindra Pvt. Ltd
upvote
share-icon
2 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1 month
Topics: Linux, Networking, OS, problem solving, Data Structures.
Tip
Tip

Tip 1 : Read puzzles.
Tip 2 : Learn about Linux fundamentals and commands thoroughly.
Tip 3 : Learn Networking basics.

Application process
Where: Campus
Eligibility: Above 6 CGPA, No backlogs
Resume Tip
Resume tip

Tip 1 : Mention at least 1 project
Tip 2 : Do not put false things in resume. 
Tip 3 : Mention any internship experience (if any)

Interview rounds

01
Round
Medium
Online Coding Interview
Duration100 minutes
Interview date6 Mar 2021
Coding problem2

MCQs consisted of easy to medium questions

1. Merge Two Sorted Arrays

Moderate
15m average time
85% success
0/80
Asked in companies
HSBCHikeAmazon

Ninja has been given two sorted integer arrays/lists ‘ARR1’ and ‘ARR2’ of size ‘M’ and ‘N’. Ninja has to merge these sorted arrays/lists into ‘ARR1’ as one sorted array. You may have to assume that ‘ARR1’ has a size equal to ‘M’ + ‘N’ such that ‘ARR1’ has enough space to add all the elements of ‘ARR2’ in ‘ARR1’.

For example:

‘ARR1’ = [3 6 9 0 0]
‘ARR2’ = [4 10]
After merging the ‘ARR1’ and ‘ARR2’ in ‘ARR1’. 
‘ARR1’ = [3 4 6 9 10]
Problem approach

Step 1 : Created an array arr[] of size n1 + n2.
Step 2 : Simultaneously traversed over arr1[] and arr2[]. 
Step 3 : Pick the min(arr1[i], arr2[i]), copy this to the next position in arr[], and move ahead in arr[] and the array whose element is picked.
Step 4 : If there are remaining elements in arr1[] or arr2[], copy them also in arr[].

Try solving now

2. Second largest element in the array

Easy
15m average time
80% success
0/40
Asked in companies
AdobeSamsungIBM

You have been given an array/list 'ARR' of integers. Your task is to find the second largest element present in the 'ARR'.

Note:
a) Duplicate elements may be present.

b) If no such element is present return -1.
Example:
Input: Given a sequence of five numbers 2, 4, 5, 6, 8.

Output:  6

Explanation:
In the given sequence of numbers, number 8 is the largest element, followed by number 6 which is the second-largest element. Hence we return number 6 which is the second-largest element in the sequence.
Problem approach

Step 1 : Sort the array
Step 2 : Return the second largest element, which is not equal to the largest element.

Try solving now
02
Round
Medium
Video Call
Duration30 minutes
Interview date4 Apr 2021
Coding problem3

The interview was conducted at 3:00 PM.
The environment was good and the interviewer was polite and experienced.

1. Puzzle Question

Imagine you are in a dark room. 
How would you find the center of the room?

Problem approach

Tip 1 : Go to one corner.
Tip 2 : Start Counting the steps while moving towards the other corner
Tip 3 : Divide the number of steps by 2.
Tip 4 : Reach the centre by returning back n/2 steps.

2. DBMS Questions

What are joins in SQL?
Explain the concept of Normalization.

Problem approach

Tip 1 : Read SQL and DBMS thoroughly.
Tip 2 : Explain using examples.
Tip 3 : Study DBMS theory concepts.

3. Operating System Questions

How to create a file using Linux command line?
Explain grep command.

Problem approach

Tip 1 : Practice Linux by using it.
Tip 2 : Learn Linux Commands. 
 

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
Software Engineer
1 rounds | 4 problems
Interviewed by Tech Mahindra Pvt. Ltd
1910 views
1 comments
0 upvotes
SDE - Intern
2 rounds | 4 problems
Interviewed by Tech Mahindra Pvt. Ltd
1319 views
0 comments
0 upvotes
Software Engineer
2 rounds | 4 problems
Interviewed by Tech Mahindra Pvt. Ltd
0 views
0 comments
0 upvotes
Product Development Engineer
2 rounds | 5 problems
Interviewed by Tech Mahindra Pvt. Ltd
772 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
Trainee Engineer
3 rounds | 6 problems
Interviewed by CIS - Cyber Infrastructure
1005 views
0 comments
0 upvotes
company logo
Trainee Engineer
2 rounds | 3 problems
Interviewed by CIS - Cyber Infrastructure
605 views
0 comments
0 upvotes
company logo
Trainee Engineer
2 rounds | 3 problems
Interviewed by CIS - Cyber Infrastructure
668 views
0 comments
0 upvotes