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

Software Engineer

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

Interview preparation journey

expand-icon
Preparation
Duration: 1 month
Topics: Data Structures, Algorithms, Aptitude, Java, Spring Boot, Hibernate, SQL, OOPS
Tip
Tip

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.

Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.

Tip 3 : Do at least 2 good projects and you must know every bit of them.


 

Application process
Where: Other
Eligibility: For Experienced Candidates - No Criteria but for Freshers - Candidates must have above 60 percentage in graduation
Resume Tip
Resume tip

Tip 1 : Have at least 2 good projects explained in short with all important points covered.

Tip 2 : Every skill must be mentioned.

Tip 3 : Focus on skills, projects and experiences more.


 

Interview rounds

01
Round
Medium
Online Coding Test
Duration90 minutes
Interview date27 Aug 2021
Coding problem2

30 MCQ's related to CS Fundamentals + 2 coding question

1. Occurrence Of Each Word

Easy
10m average time
90% success
0/40
Asked in companies
AmazonMakeMyTripTech Mahindra

You are given a string S of words. Your task is to count the occurrence of each word present in the string S. A word is a sequence of one or more non-space characters, and there can be multiple spaces between two words, and also there can be leading or trailing spaces in a string S.

For Example:
For the given string  “what we think we become”

“what”,” think”, and “become” occurs 1 time, and “we” occurs 2 times in the given string.
Try solving now

2. Maximum Subarray Sum

Moderate
35m average time
81% success
0/80
Asked in companies
MicrosoftAccentureSAP Labs

You are given an array 'arr' of length 'n', consisting of integers.


A subarray is a contiguous segment of an array. In other words, a subarray can be formed by removing 0 or more integers from the beginning and 0 or more integers from the end of an array.


Find the sum of the subarray (including empty subarray) having maximum sum among all subarrays.


The sum of an empty subarray is 0.


Example :
Input: 'arr' = [1, 2, 7, -4, 3, 2, -10, 9, 1]

Output: 11

Explanation: The subarray yielding the maximum sum is [1, 2, 7, -4, 3, 2].
Try solving now
02
Round
Medium
Video Call
Duration45 minutes
Interview date4 Sep 2021
Coding problem8

In this round, the interviewer first started asking questions related to Java and Spring Boot and then he switched to Hibernate. The interview however ended with the interviewer asking me some basic queries related to SQL.

1. Java Question

What are the various access specifiers in Java?

2. Spring Boot Question

What is dependency Injection?

3. Spring Boot Question

What is the starter dependency of the Spring boot module?

4. Hibernate Question

What is hibernate caching?

5. SQL Question

Given an Employee Table, find the Nth highest salary from it.

Problem approach
CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT
BEGIN
DECLARE M INT;
SET M=N-1;
RETURN (
SELECT DISTINCT Salary FROM Employee ORDER BY Salary DESC LIMIT M, 1
);
END

6. Spring Boot Question

What is the purpose of using @ComponentScan in the class files?

7. Java Question

How many types of memory areas are allocated by JVM?

8. Java Question

What is the difference between JDK, JRE, and JVM?

03
Round
Easy
HR Round
Duration25 minutes
Interview date9 Aug 2021
Coding problem1

This is a cultural fitment testing round. HR was very frank and asked standard questions.

1. Basic HR Question

Tell me something not there in your resume.

Problem approach

If you get this question, it's an opportunity to choose the most compelling information to share that is not obvious from your resume.


Example :


Strength -> I believe that my greatest strength is the ability to solve problems quickly and efficiently, which makes me unique from others.
 

Ability to handle Pressure -> I enjoy working under pressure because I believe it helps me grow and become more efficient.

Here's your problem of the day

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

Skill covered: Programming

What is 3 + 2 * 4 based on operator precedence?

Choose another skill to practice
Similar interview experiences
company logo
Software Engineer
2 rounds | 2 problems
Interviewed by Tech Mahindra
0 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 4 problems
Interviewed by Tech Mahindra
0 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 2 problems
Interviewed by Tech Mahindra
2057 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 2 problems
Interviewed by Tech Mahindra
1279 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
4 rounds | 1 problems
Interviewed by Newgen Software
2695 views
2 comments
0 upvotes
company logo
Software Engineer
3 rounds | 6 problems
Interviewed by HashedIn
2040 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 2 problems
Interviewed by Ernst & Young (EY)
0 views
0 comments
0 upvotes