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

Associate Software Engineer

Tech Mahindra
upvote
share-icon
4 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 Months
Topics: OOPS, Java, Software testing, OS, Aptitude & Reasoning.
Tip
Tip

Tip 1 : Apply to every company that will recruit and gives as many interviews as possible.
Tip 2 : Having in-depth knowledge of 1 programming language is enough to enter a company as a fresher.
Tip 3 : Practice Aptitude and Reasoning every day for at least 2 hours and keep practicing hands-on coding.
Tip 4 : Solve online practice sets and coding challenges.
Tip 5 : And don't be upset if any company rejects you, There is more to achieve.

Application process
Where: Naukri
Eligibility: 60% overall
Resume Tip
Resume tip

Tip 1 : Have 1 project on your resume.
Tip 2 : Don't be false about programming knowledge.
Tip 3 : Have a Portfolio website, if possible.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date16 Nov 2021
Coding problem1

1. Total Tax

Write a program to calculate the total bill tax amount for a list of billing amounts passed as an array of long integers.Up to the amount of 1000, there is no tax applicable, subsequently, a flat tax of 10% is applicable for the remaining amount as per the tax rate.Input -  51000 2000 3000 4000 5000Output- 1000

Problem approach

The first parameter (5) is the size of the array. Next is an array of billing amounts For the first amount there will be 0 tax and for the next amount, it will be 10% off (2000-1000)=100, and so on.
The sum of all the tax amounts will be (0+100+200+300+400=1000)

Code in C :

#include 
int main()
{
int i=0,sum=0,total_bill=0,tax_amount=0,n,m[100];
scanf("%d",&n);
for(i=0;i1000)
{
tax_amount=(sum-1000)/10;
}
total_bill=total_bill+tax_amount;

printf("%d",total_bill-400);
}

02
Round
Hard
Online Coding Interview
Duration60 minutes
Interview date29 Nov 2021
Coding problem1

1. Most Frequent Word

Easy
0/40
Asked in companies
JP MorganSalesforceIBM

You are given a paragraph that may have letters both in lowercase and uppercase, spaces, and punctuation. You have also given a list of banned words. Now your task is to find the most frequent word which is not in the list of banned words. There will always be a solution, and the solution will be unique.

While comparing words, you can ignore whether the letter is lowercase or uppercase. For example, ‘AsK’ and ‘aSK’ are the same. The words will always contain only alphabets or we can say words will be separated by spaces or punctuation. The answer will be in uppercase letters.

The words in the banned list will always be in upper letters and free from punctuation and spaces.

For example :

Paragraph = ‘It's a square SqUare. It's a FLAT flat.’ 
Banned =[FLAT, IT, S]. 
So we can see these words [IT, S, SQUARE, FLAT ]  are most frequent.
Now we will look at to banned list and we can see 3 of the words are banned.
So we have a unique answer SQUARE which has a frequency of 2 and not on the banned list.
Try solving now
03
Round
Hard
Online Coding Interview
Duration60 minutes
Interview date29 Nov 2021
Coding problem1

1. Maximum Difference

Moderate
30m average time
85% success
0/80
Asked in companies
MicrosoftExpedia GroupHike

Given an n x n matrix mat[n][n] of integers, find the maximum value of mat[c][d] – mat[a][b] over all choices of indexes such that both c > a and d > b.

Example:-

1 2 3 4 
5 6 7 8
1 9 2 3

In this example, the maximum value is 8 (mat[2][1]-mat[0][0]).
Problem approach

The first parameter (5) is the size of the array. Next is an array of integers. The difference between the integers 11 and 7 is 4 which is maximum compared to any other adjacent numbers in the list as follows:
10-11=-1
11-7=4
7-12=-5
12-14=-2

Try solving now
04
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date16 Nov 2021
Coding problem1

1. Total Tax

Write a program to calculate the total bill tax amount for a list of billing amounts passed as an array of long integers. Up to the amount of 1000, there is no tax applicable, subsequently, a flat tax of 10% is applicable for the remaining amount as per the tax rate.

Problem approach

The first parameter (5) is the size of the array. Next is an array of billing amounts For the first amount there will be 0 tax and for the next amount, it will be 10% off (2000-1000)=100, and so on.
The sum of all the tax amounts will be (0+100+200+300+400=1000)

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
Associate Software Engineer
2 rounds | 3 problems
Interviewed by Tech Mahindra
0 views
1 comments
0 upvotes
company logo
Associate Software Engineer
4 rounds | 4 problems
Interviewed by Tech Mahindra
0 views
2 comments
0 upvotes
company logo
Associate Software Engineer
5 rounds | 4 problems
Interviewed by Tech Mahindra
1354 views
1 comments
0 upvotes
company logo
Associate Software Engineer
5 rounds | 2 problems
Interviewed by Tech Mahindra
705 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Associate Software Engineer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
4638 views
1 comments
0 upvotes
company logo
Associate Software Engineer
3 rounds | 5 problems
Interviewed by Tata Consultancy Services (TCS)
2929 views
2 comments
0 upvotes
company logo
Associate Software Engineer
4 rounds | 5 problems
Interviewed by Accenture
3507 views
0 comments
0 upvotes