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

SDE - 2

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

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Java, Data Structures, Oops Concept, Angular, Basic fundamental of Computer Science
Tip
Tip

Tip 1 : Prepare well for resume & confidence for basic part of CS.
Tip 2 : Good knowledge of skills set which mentioned in CV.
Tip 3 : Explain about projects which you have worked earlier & your roles and responsibilities.

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

Tip 1 : Mentioned all the skills & certificate till date update your resume every 3 month's. 
Tip 2 : Proper skills set with project explanation and duration of project which you have worked on

Interview rounds

01
Round
Medium
Telephonic
Duration30 minutes
Interview date9 Feb 2018
Coding problem2

1. Remove Duplicates

Easy
0/40
Asked in companies
CIS - Cyber InfrastructureSAP LabsAdobe

Given a string S, remove consecutive duplicates from it recursively.

Problem approach

use the LinkedHashSet (Set Interface) to retain the original insertion order of the elements into the set.

The main factor that we must keep in mind when dealing with arrays is not the elements that have duplicates. The main problem here is removing the duplicates instead. Arrays are static data structures that are of fixed length, thus not possible to be altered. So, to delete elements from arrays, you need to create new arrays and duplicate the content into these new arrays.

First, you must convert the arrays into Arraylists and then create LinkedHashSets from these ArrayLists. If input arrays contain a larger number of duplicates then it can result in multiple temporary arrays, thus increasing the cost of importing the content. This restriction enforces that we approach this problem in a manner that requires less memory and processing power.

We must remove the duplicates but not copy them into the resulting arrays, thus not deleting the duplicates entirely but simply replacing them with 0 as the default value.

Try solving now

2. DSA Questions

1. Benefits of Learning Data Structures ?
2. Can you explain the difference between file structure and storage structure?
3. What is a multidimensional array?
4. What is a stack? What are the applications of stack?
5. How is a stack different from a queue?

02
Round
Easy
Face to Face
Duration90 minutes
Interview date12 Mar 2018
Coding problem2

1. Reverse String

Moderate
0/80
Asked in companies
Livekeeping (An IndiaMART Company)IBMMcAfee

You are given a string ‘S’. You are also given ‘M’ integers in an array ‘A’. You perform ‘M’ operations on this string. The operations are given in an array ‘A’ of size ‘M’.

You perform the operations in the order they appear in the array ‘A’. In the ‘i’th operation, you reverse the substring of ‘S’ from the position ‘A[i]’ to ‘len(S)’ - ‘A[i]’ - 1 (0 based).

Your task is to find the string after performing all the operations.

Example :
‘S’ = “aabcd”, ‘M’ = 2, ‘A’ = [0, 1]
After 1st operation i.e, reversing from [0, 4], ‘S’ = “dcbaa”.
After 2nd operation i.e, reversing from [1, 3], ‘S’ = “dabca”.
Hence, the answer is “dabca”.
Problem approach

Declare a string.
Take out the length of that string.
Loop through the characters of the string.
Add the characters in reverse order in the new string.
String str = "hello";

String reverse = "";

int length = str.length();

for (int i = 0; i < length; i++) {

reverse = str.charAt(i) + reverse;

}

System.out.println(reverse);

Try solving now

2. DSA and OOPS Questions

How can you find the largest or smallest number in an array of integers?
What is an AVL Tree?
What is the difference between tree and graph data structure?
Oops concepts with principal.
Basic fundamentals of computer Science.

03
Round
Medium
HR Round
Duration50 minutes
Interview date16 May 2018
Coding problem1

1. Basic HR Questions

Why should we hire you ? 
How you are fit for this position ? 
Why you are looking into service based organization ? 
Tell me about your family in brief. 
How soon will you join us?

Problem approach

Tip 1 : Be confidence about introduction part do not get hesitated during your HR discussion
Tip 2 : Try to be uniform the way & show them interested to join the organization.
Tip 3 : Majorly the focus on behavioural and communication skills.

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 - 2
2 rounds | 5 problems
Interviewed by Tech Mahindra Pvt. Ltd
1670 views
0 comments
0 upvotes
SDE - 1
3 rounds | 3 problems
Interviewed by Tech Mahindra Pvt. Ltd
1413 views
0 comments
0 upvotes
SDE - 2
3 rounds | 3 problems
Interviewed by Tech Mahindra Pvt. Ltd
1330 views
0 comments
0 upvotes
Senior Software Engineer
3 rounds | 3 problems
Interviewed by Tech Mahindra Pvt. Ltd
2226 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
29892 views
8 comments
0 upvotes
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by HashedIn
9698 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
6765 views
1 comments
0 upvotes