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

SDE - 1

Mercer Mettl
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
When I joined college, I was unaware of Data Structures and Algorithms, which made my journey to getting an internship much more complicated. From that point on, I started doing questions on coding platforms.
Application story
This company visited my campus for the placement where I applied for it.
Why selected/rejected for the role?
I was rejected because I was not able to provide a good approach to the DSA questions that were asked.
Preparation
Duration: 6 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1: Practice on coding platforms and solve medium-level problems. 

Tip 2: Brush up on computer fundamentals from subjects like OS, DBMS, and CN. 

Tip 3: Have a good project or internship experience and possess in-depth knowledge regarding your work.

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1: Have some projects on your resume. 

Tip 2: Do not put false information on your resume.

Interview rounds

01
Round
Medium
Face to Face
Duration70 minutes
Interview date13 Jan 2023
Coding problem2

1. K Most Frequent Words

Moderate
10m average time
85% success
0/80
Asked in companies
WalmartOracleFacebook

You are given an Integer array ‘ARR’ and an Integer ‘K’.


Your task is to find the ‘K’ most frequent elements in ‘ARR’. Return the elements in any order.


For Example:

You are given ‘ARR’ = {1, 2, 2, 3, 3} and ‘K’ = 2. 

The answer will {2, 3} as 2 and 3 are the elements occurring most times.
Problem approach

Brute force was to iterate through every collection ID/name over every given file and then group them up. That was not an optimized solution.

The optimal way is to use a Set to remove duplicates first and then use a min heap with custom comparators to sort files by size. Use a custom class object to group the files by collections.

Try solving now

2. All Prime Numbers less than or equal to N

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

You are given a positive integer 'N'. Your task is to return all the prime numbers less than or equal to the 'N'.

Note:

1) A prime number is a number that has only two factors: 1 and the number itself.

2) 1 is not a prime number.
Problem approach

You are given a positive integer 'N'. Your task is to return all the prime numbers less than or equal to the 'N'.

Try solving now
02
Round
Medium
Face to Face
Duration70 minutes
Interview date13 Jan 2023
Coding problem2

1. Construct tree from Preorder Traversal

Moderate
13m average time
0/80
Asked in companies
Samsung R&D InstituteMercer MettlTekion Corp

You are given a preorder traversal of a binary search tree. Your task is to find the postorder from the preorder.


Return the root of the BST constructed from the given preorder. The driver code will then use this root to print the post-order traversal.


For example:
You are given preOrder = [10, 5, 1, 7, 40, 50], the binary search tree from the given preorder traversal is 

sample1

Hence the answer is [1, 7, 5, 50, 40, 10].
Try solving now

2. Remove Consecutive Duplicates from String

Easy
0/40
Asked in companies
OlaWalmartSamsung

You are given a string ‘str’ of size ‘N’. Your task is to remove consecutive duplicates from this string recursively.

For example:

If the input string is ‘str’ = ”aazbbby”, then your output will be “azby”.
Note that we are just removing adjacent duplicates.
Problem approach

I just simply used iterative traversal of the string and checked for the current element and the next element to see whether they are equal or not.

Try solving now
03
Round
Easy
HR Round
Duration25 minutes
Interview date13 Jan 2023
Coding problem1

1. Basic HR Questions

Why should I hire you?
What are your strengths and weaknesses?
Why do you want to work at our company?
What is the difference between confidence and overconfidence?

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 recursion?

Choose another skill to practice
Similar interview experiences
SDE - 1
3 rounds | 6 problems
Interviewed by Mercer Mettl
851 views
0 comments
0 upvotes
SDE - 1
2 rounds | 4 problems
Interviewed by Mercer Mettl
1199 views
0 comments
0 upvotes
SDE - 1
2 rounds | 4 problems
Interviewed by Mercer Mettl
971 views
0 comments
0 upvotes
SDE - 1
2 rounds | 4 problems
Interviewed by Mercer Mettl
1170 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes