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

SDE - Intern

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

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: DSA ,Computer network, Javascript, Angular, Operating system
Tip
Tip

Tip 1 : DSA is asked in depth. So prepare it alike
Tip 2 : Good to know JavaScript core concepts like closure 
Tip 3 : Practice from online coding platforms

Application process
Where: Referral
Resume Tip
Resume tip

Tip 1 : Should have javascript and if possible know both the backend and frontend (eg angular, node)
Tip 2 : Do not put false things on your resume

Interview rounds

01
Round
Easy
Video Call
Duration60 minutes
Interview date25 Jun 2022
Coding problem2

A coding question and some basic JS concepts were asked

1. JavaScript Question

  • What is a closure? Can you give some advantages of closures in JavaScript?
  • What is a state?
Problem approach

Verbally gave defination and explained the advantages

2. Delete middle element from stack

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

You are having a stack "ARR" of size 'N+1', your task is to delete the middlemost element so that the size of resulting stack is 'N'.

A stack is a linear data structure where both insertion and deletion of elements take place at the top. It follows FILO (First In Last Out) or LIFO (Last In First Out) approaches. Books piled on top of each other is an example of a stack, where you can only remove a single book at a time, which is at the top of the stack. Likewise, you can only add a single book at a time, on the top of the stack only.

Example :-
INPUT : ARR [ ] = [ 1 , 2 , 3 , 4 , 5 ] , N = 4
OUTPUT: ARR [ ] = [ 1 , 2 , 4,  5 ]

The above example contains an odd number of elements, hence the middle element is clearly the (N+1) / 2th element, which is removed from the stack in the output.

INPUT : ARR [ ] = [ 5, 6, 7, 8 ] , N = 3
OUTPUT: ARR [ ] = [ 5, 7, 8 ]

The above example contains an even number of elements, so out of the two middle elements, we consider the one which occurs first. Hence, the middle element would be ((N+1) / 2 - 1) element, which is 6 and is removed from the stack in the output.
Try solving now
02
Round
Easy
HR Round
Duration20 minutes
Interview date30 Jun 2022
Coding problem1

It was just a normal HR Round. Interviewer was very polite and helping.

1. Basic HR Questions

  • Introduce yourself
  • What is your biggest achievement till now?
  • Explain the functionality of your project.
Problem approach

Tip 1 : Know about your project in depth
Tip 2 : Quantity doesn't matter have one good project but knows everything about it
Tip 3 : Try to make your project scalable and being the main coder in your team helped me a lot

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
SDE - Intern
1 rounds | 2 problems
Interviewed by Tech Mahindra Pvt. Ltd
1093 views
0 comments
0 upvotes
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
Product Development Engineer
2 rounds | 5 problems
Interviewed by Tech Mahindra Pvt. Ltd
773 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15605 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15499 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10216 views
2 comments
0 upvotes