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

Software Developer

Mindtree
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
I planned to start learning DSA from the first year, but I could not. So, I began DSA in the fourth semester, and along with DSA, I also learned development because that is what I wanted to do. I was confident in both DSA and development, but even then, I kept revising the concepts.
Application story
My friend texted me about this company and told me some of the important questions and topics for its selection process. I applied and participated in the selection process, and luckily, most of the questions were from the list of important questions shared by my friend. So, I was fortunate in this case.
Why selected/rejected for the role?
I provided correct explanations for my solutions in the coding round. I also developed the optimal solution, starting from the brute force algorithm, which further contributed to my points.
Preparation
Duration: 3 months
Topics: Topics: Data Structures, Dynamic Programming, Operating System, DBMS, OOPS, Computer Networking, SQL, Backtracking
Tip
Tip

Tip 1 : Practice a lot of programming problems. Participate in competitive programming contests. 
Tip 2 : Make sure you have your computer science fundamentals very clear and maintain a decent CGPA. 
Tip 3 : Do couple of real problem-solving projects.

Application process
Where: Referral
Eligibility: Above 8 CGPA
Resume Tip
Resume tip

Tip 1: Maintain a precise and self-explanatory one-page resume.
Tip 2: Avoid including non-technical achievements (e.g., 1st place in dancing or singing competitions, etc.).

Interview rounds

01
Round
Medium
Video Call
Duration60 minutes
Interview date4 Sep 2022
Coding problem2

1. Count all sub-arrays having sum divisible by k

Moderate
15m average time
85% success
0/80
Asked in companies
MicrosoftSnapdealProtium

Given an array ‘ARR’ and an integer ‘K’, your task is to find all the count of all sub-arrays whose sum is divisible by the given integer ‘K’.

Note:
If there exists no subarray in the given sequence whose sum is divisible by ‘K’ then simply return ‘0’.
Example:
Suppose the given array is ‘ARR’ = { 5, 0, 2, 3, 1} and ‘K = 5’.
As we can see in below image, there are a total of 6 subarrays that have the total sum divisible by ‘K’
So we return the integer 6.

subsequence

Problem approach

I solved it using a HashMap. It's a pretty standard problem and can also be found easily on the internet.

Try solving now

2. Sort an array in wave form

Easy
10m average time
85% success
0/40
Asked in companies
Expedia GroupAdobeAmazon

You have been given an unsorted array ‘ARR’.

Your task is to sort the array in such a way that the array looks like a wave array.

Example:
If the given sequence ‘ARR’ has ‘N’ elements then the sorted wave array looks like - 
‘ARR[0] >= ARR[1]’ and ‘ARR[1] <= ARR[2]’
‘ARR[2] >= ARR[3]’ and ‘ARR[3] <= ARR[4]’
‘ARR[4] >= ARR[5]’ and ‘ARR[5] <= ARR[6]’  And so on.
Note:
1. ‘ARR[0]’ must be greater than or equal to ‘ARR[1]’.

2. There can be multiple arrays that look like a wave array but you have to return only one.

3. We have an internal function that will check your solution and return 'True' in case your array is one of the solutions otherwise return 'False'.

Explanation

The given array ‘ ARR = { 4, 3, 5, 2, 3, 1, 2 } ’
The below figure is a visual representation of the given ‘ARR’ and you can see we can express ‘ARR’ in a waveform array because 
4>3 and 3<5 
5>2 and 2<3
3>1 and 1<2
And it follows the condition of wave array.

subsequence

Follow up:
Try to solve this problem in linear time complexity.
Problem approach

Sorted the array and then swapped the adjacent elements in groups of size 2.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date8 Sep 2022
Coding problem2

1. Convert Number To Words

Hard
40m average time
75% success
0/120
Asked in companies
AppleFacebookExpedia Group

You are given an Integer ‘N’ you have to convert the integer to words.

For example you are given integer N = 2234 then you have to return the string “two thousand two hundred and thirty four”.

Problem approach

I tried to use HashMap to store some values as a part of pre-processing and then build up some approach, couldn't code it completely.

Try solving now

2. Merge Sort Linked List

Moderate
10m average time
90% success
0/80
Asked in companies
MeeshoNatwest GroupWalmart

You are given a Singly Linked List of integers. Sort the Linked List using merge sort.

Merge Sort is a Divide and Conquer algorithm. It divides the input into two halves, calls itself for the two halves, and then merges the two sorted halves. The merge() function is used for merging two halves. The merge(arr, L, M, R) is a key process that assumes that arr[L..M] and arr[M + 1...R] are sorted and merges the two sorted subarrays into one.

Problem approach

1. If the size of the linked list is 1 then return the head
2. Find mid using The Tortoise and The Hare Approach
3. Store the next of mid in head2 i.e. the right sub-linked list.
4. Now Make the next midpoint null.
5. Recursively call mergeSort() on both left and right sub-linked list and store the new head of the left and right linked list.
6. Call merge() given the arguments new heads of left and right sub-linked lists and store the final head returned after merging.
7. Return the final head of the merged linkedlist.

Try solving now
03
Round
Medium
HR Round
Duration30 minutes
Interview date11 Sep 2022
Coding problem1

1. Basic HR Questions

Introduce yourself.

Later, I was briefly asked about my internship, what my role was, and how I managed conflicts.

I was asked why I am choosing Mindtree and what qualities Mindtree has that make it different from other companies.

Later, I was asked whether I am okay with relocation.

At the end, he told me about himself, gave a brief introduction about the company, role, and salary, and asked whether I have a PAN card.

Problem approach

Tip 1 : Do a background research and state some of the facts like number of employee, CEO etc.
Tip 2 : Tell about work culture in their company.
Tip 3 : research about their different ethics of features that make them stand out among other companies.

Here's your problem of the day

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

Skill covered: Programming

To make an AI less repetitive in a long paragraph, you should increase:

Choose another skill to practice
Similar interview experiences
company logo
Software Developer
3 rounds | 3 problems
Interviewed by Mindtree
1721 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 6 problems
Interviewed by Mindtree
2173 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 3 problems
Interviewed by Mindtree
1590 views
0 comments
0 upvotes
company logo
Technical Lead
3 rounds | 3 problems
Interviewed by Mindtree
1218 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Developer
5 rounds | 14 problems
Interviewed by Microsoft
3913 views
1 comments
0 upvotes
company logo
Software Developer
6 rounds | 12 problems
Interviewed by SAP Labs
2789 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 3 problems
Interviewed by Amazon
1123 views
0 comments
0 upvotes