Tech Mahindra

Tech Mahindra

Multinational IT services and consulting company.

4 Rounds ~21 Days Medium
Start Mock Interview

The Interview Loop

Recruiter Screen (30 min)

Standard fit check, behavioral questions, and resume overview.

Technical Loop (3-4 Rounds)

Deep dive into domain knowledge, coding, and system design.

Interview Question Bank

Cloud Engineer Coding hard

Write a Python script that traverses a given directory, finds all duplicate files based on their MD5 hash, and prints their paths.

#Python #File System #Hashing
Data Engineer Coding easy

Write a Python function to find the first non-repeating character in a given string. Optimize it for time complexity.

#Strings #Hash Maps
Data Scientist Coding hard

Implement a Python function to calculate the TF-IDF of a given corpus of text from scratch (without using Scikit-Learn).

#Python #TF-IDF #Math #NLP
Data Scientist Coding easy

Write a Python function to reverse a string without using built-in functions like reversed() or slicing [::-1].

#Python #Strings #Loops
Frontend Engineer Coding medium

Write a debounce function from scratch. How would you apply this to a search input field in a telecom billing portal to minimize API calls?

#Closures #Timers #Performance Optimization
Frontend Engineer Coding medium

Write a function that splits an array into chunks of a specified size.

#Arrays #Data Manipulation
Frontend Engineer Coding medium

Write a function to flatten a deeply nested object into a single-level object with dot-separated keys.

#Recursion #Object Manipulation #Data Structures
Frontend Engineer Coding medium

Write a function to deep clone a JavaScript object without using JSON.parse(JSON.stringify()).

#Recursion #Object Manipulation #Memory References
Frontend Engineer Coding easy

Write a function to check if two strings are anagrams of each other.

#Strings #Hash Maps #Sorting
Full Stack Engineer Coding easy

Find the first non-repeating character in a string and return its index.

#Strings #Hash Table
Full Stack Engineer Coding easy

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.

#Arrays #Hash Table
Full Stack Engineer Coding medium

Find the longest substring without repeating characters in a given string.

#Strings #Sliding Window
Full Stack Engineer Coding medium

Given a collection of intervals, merge all overlapping intervals.

#Arrays #Sorting
Full Stack Engineer Coding easy

Reverse a singly linked list.

#Linked Lists #Pointers
Full Stack Engineer Coding hard

Detect a cycle in a directed graph.

#Graphs #DFS
Full Stack Engineer Coding easy

Write a function to check if a given string containing brackets is valid (Valid Parentheses).

#Stacks #Strings
Machine Learning Engineer Coding easy

Write a Python script to reverse a singly linked list.

#Data Structures #Linked Lists
Machine Learning Engineer Coding hard

Implement a basic K-Means clustering algorithm from scratch in Python.

#Python #Machine Learning #Math
Machine Learning Engineer Coding medium

Write a Python function to find the longest substring without repeating characters.

#Python #Strings #Sliding Window
Software Engineer Coding easy

Write a Java program to check if two strings are anagrams of each other.

#Strings #Hashing #Sorting
Software Engineer Coding hard

Merge two sorted arrays without using extra space.

#Arrays #Sorting #Optimization
Software Engineer Coding medium

Given an array of integers, find the contiguous subarray with the maximum sum (Kadane's Algorithm).

#Arrays #Dynamic Programming
Software Engineer Coding medium

Write a program to detect a loop in a LinkedList.

#LinkedList #Pointers
Software Engineer Coding medium

Find the second highest number in an integer array in a single pass.

#Arrays #Optimization
Software Engineer Coding easy

Write a program to reverse a string without using any inbuilt functions like reverse().

#Strings #Loops

Difficulty Radar

Based on recent AI-sourced data.

Meet Your Interviewers

The "Standard" Interviewer

Senior Engineer

Focuses on core competencies, system constraints, and clear communication.

Simulate

Unwritten Rules

Think Out Loud

Always explain your thought process before writing code or drawing architecture.

Practice Now