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

SDE - Intern

Tech Mahindra
upvote
share-icon
1 rounds | 2 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1 month
Topics: Data Structures, OOPS, DBMS, OOPs, Algorithms, DP, Greedy
Tip
Tip

Tip 1 : Try solving Love Babbar 450 Prog questions
Tip 2 : Have a good resume
Tip 3 : Do learn some extra technologies eg. ML/AI

Application process
Where: Campus
Eligibility: 6+ CGPA
Resume Tip
Resume tip

Tip 1 : Do not lie at all
Tip 2 : Have some projects listed

Interview rounds

01
Round
Easy
Online Coding Test
Duration60 minutes
Interview date19 Nov 2020
Coding problem2

1. Count Even Odd

Easy
10m average time
95% success
0/40
Asked in companies
WalmartAdobeTech Mahindra

You have been given an array/list of integers 'ARR' of size 'N'. Your task is to find two things-

1. The number of elements that are occurring an Odd number of times.

2. The number of elements that are occurring Even a number of times.

For Example:
ARR = [2, 1, 2, 1, 5, 5, 2]    
Output: 1 2 

2 occurs three(odd) times.
1 occurs two(even) times.
5 occurs two(even) times.

So, the total 1 element is occurring an odd number of times and 2 elements are occurring an even number of times.
Try solving now

2. Delete Nodes Which Have A Greater Value On Right Side

Moderate
25m average time
75% success
0/80
Asked in companies
AmazonTech Mahindra

You are given a linked list of integers where each node has two fields: data field which contains a value, 'next' field which points to its adjacent node to the right or NULL if it is the last node. Your task is to delete all such nodes X, whose adjacent nodes to the right have strictly greater value than the value of X.

A singly linked list is a linear data structure in which we can traverse only in one direction i.e. from Head to Tail. It consists of several nodes where each node contains some data and a reference to the next node.

A sample Linked List-

singly_linkedlist

Follow Up:
Can you solve this in linear time and constant space complexity?
Try solving now

Here's your problem of the day

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

Skill covered: Programming

Which operator is used for exponentiation in Python?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Tech Mahindra
998 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Tech Mahindra
0 views
1 comments
0 upvotes
company logo
Software Developer
3 rounds | 18 problems
Interviewed by Tech Mahindra
775 views
0 comments
0 upvotes
company logo
Graduate Engineer Trainee
4 rounds | 22 problems
Interviewed by Tech Mahindra
428 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Arcesium
3219 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Arcesium
2178 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by BNY Mellon
1960 views
0 comments
0 upvotes