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

Salesforce Developer

MTX
upvote
share-icon
4 rounds | 10 Coding problems

Interview preparation journey

expand-icon
Journey
I have completed my Engineering from Amity University Noida, specializing in Computer Science Engineering recently. In the second year, I started learning java and dsa from coding ninjas. After learning DSA i started working on projects. I was pretty confident on my skills. I used to practice dsa questions daily on Codezen. I was pretty much confident with my skills.
Application story
I got this opportunity on campus. A form was rolled out for this, so there we need to fill all the necessary detials along with resume.
Why selected/rejected for the role?
I got selected for this role. Practical and coding skills helped me in grabing this opportunity. It was very great and awesome experience. I think for every SDE role, one should be good in DSA. DSA is must and projects also. If someone has internship in their resume then it would be a cherry on the cake.
Preparation
Duration: 10 months
Topics: Data Structures, Algorithms, OOPS, DBMS, JAVA, OS
Tip
Tip

Tip 1 : Practice Atleast 250 Questions 
Tip 2 : Prepare atleast 2 good projects
Tip 3 : Communication skills should be good.

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

Tip 1: Be honest with your resume.
Tip 2: Resume should be crisp and short.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration135 minutes
Interview date15 Nov 2021
Coding problem2

It MCQs consisted of Aptitude, CS Fundamentals (OOP, DBMS, OS, etc) and a few Machine Learning problems.

1. Count Set Bits

Hard
15m average time
85% success
0/120
Asked in companies
HSBCSamsungBank Of America

You are given a positive integer ‘N’. Your task is to find the total number of ‘1’ in the binary representation of all the numbers from 1 to N.

Since the count of ‘1’ can be huge, you are required to return it modulo 1e9+7.

Note:
Do not print anything, just return the number of set bits in the binary representation of all integers between 1 and ‘N’.
Problem approach

First of all, we will add 1 to the number in order to compensate 0. As the binary number system starts from 0. So now n = n + 1.
We will keep the track of the number of set bits encountered till now. And we will initialise it with n/2.
We will keep one variable which is a power of 2, in order to keep track of bit we are computing.
We will iterate till the power of 2 becomes greater than n.
We can get the number of pairs of 0s and 1s in the current bit for all the numbers by dividing n by current power of 2.
Now we have to add the bits in the set bits count. We can do this by dividing the number of pairs of 0s and 1s by 2 which will give us the number of pairs of 1s only and after that, we will multiply that with the current power of 2 to get the count of ones in the groups.
Now there may be a chance that we get a number as number of pairs, which is somewhere in the middle of the group i.e. the number of 1s are less than the current power of 2 in that particular group. So, we will find modulus and add that to the count of set bits which will be clear with the help of an example.

Try solving now

2. Maximum Product Subarray

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

You are given an array “arr'' of integers. Your task is to find the contiguous subarray within the array which has the largest product of its elements. You have to report this maximum product.

An array c is a subarray of array d if c can be obtained from d by deletion of several elements from the beginning and several elements from the end.

For e.g.- The non-empty subarrays of an array [1,2,3] will be- [1],[2],[3],[1,2],[2,3],[1,2,3]. 
For Example:
If arr = {-3,4,5}.
All the possible non-empty contiguous subarrays of “arr” are {-3}, {4}, {5}, {-3,4}, {4,5} and {-3,4,5}.
The product of these subarrays are -3, 4, 5, -12, 20 and -60 respectively.
The maximum product is 20. Hence, the answer is 20.
Follow Up:
Can you solve this in linear time and constant space complexity?
Problem approach

Traverse array from left to right keeping two variables minVal and maxVal which represents the minimum and maximum product value till the ith index of the array. Now, if the ith element of the array is negative that means now the values of minVal and maxVal will be swapped as value of maxVal will become minimum by multiplying it with a negative number. Now, compare the minVal and maxVal. 
The value of minVal and maxVal depends on the current index element or the product of the current index element and the previous minVal and maxVal respectively.

Try solving now
02
Round
Medium
Video Call
Duration45 minutes
Interview date17 Sep 2021
Coding problem2

Interview held in afternoon. It went around for 1 hour.The interviewer was very helpful.

1. Subset Sum Equal To K

Moderate
30m average time
65% success
0/80
Asked in companies
DunzoHCL TechnologiesDeutsche Bank

You are given an array/list ‘ARR’ of ‘N’ positive integers and an integer ‘K’. Your task is to check if there exists a subset in ‘ARR’ with a sum equal to ‘K’.

Note: Return true if there exists a subset with sum equal to ‘K’. Otherwise, return false.

For Example :
If ‘ARR’ is {1,2,3,4} and ‘K’ = 4, then there exists 2 subsets with sum = 4. These are {1,3} and {4}. Hence, return true.
Problem approach

I was not able to solve at first go but i didnt give up. I spent 30 minutes on it. i was trying and telling every approach to the interviewer.
In the end he gave me a little bit idea and then i told him brute force approach.

Try solving now

2. Technical Question

What is CRUD operation

Problem approach

Tip 1:Do practice for SQL queries.

03
Round
Medium
Video Call
Duration45 minutes
Interview date20 Sep 2021
Coding problem3

Interview held in eveing. It went around for 1 hour.The interviewer was very helpful.

1. Next Smaller Element

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

You are given an array 'ARR' of integers of length N. Your task is to find the next smaller element for each of the array elements.

Next Smaller Element for an array element is the first element to the right of that element which has a value strictly smaller than that element.

If for any array element the next smaller element does not exist, you should print -1 for that array element.

For Example:

If the given array is [ 2, 3, 1], we need to return [1, 1, -1]. Because for  2, 1 is the Next Smaller element. For 3, 1 is the Next Smaller element and for 1, there is no next smaller element hence the answer for this element is -1.
Problem approach

It was an medium level problem. I used stack for this question. I explained him every corner case. He was satisfied with the solution.

Try solving now

2. DBMS Questions

ACID properties, joins, indexing

Problem approach

Tip 1:Do practice SQL queries.

Easy
20m average time
80% success
0/40
Asked in companies
Urban Company (UrbanClap)MTXUnthinkable Solutions

You are given an array ‘arr’ of ‘N’ distinct integers. Your task is to print all the non-empty subsets of the array.

Note: elements inside each subset should be sorted in increasing order. But you can print the subsets in any order, you don’t have to specifically sort them.

 

Problem approach

I solved this question in 0(n) and he was happy with the solution.

Try solving now
04
Round
Easy
HR Round
Duration30 minutes
Interview date21 Sep 2021
Coding problem3

It was held in evening.

1. Basic HR Questions

Related to projects mentioned in resume.

Problem approach

Tip 1: Be confident
Tip 2: Dont lie
Tip 3: Good communication skills.

2. Basic HR Question

Goals for next 5 years

Problem approach

Tip 1: Be confident
Tip 2: Dont lie
Tip 3: Good communication skills.

3. Basic HR Question

Why MTX?

Problem approach

Tip 1: Be confident
Tip 2: Dont lie
Tip 3: Good communication skills.

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
Fullstack Developer
4 rounds | 2 problems
Interviewed by MTX
625 views
0 comments
0 upvotes
Salesforce Developer
3 rounds | 6 problems
Interviewed by MTX
0 views
0 comments
0 upvotes
Salesforce Developer
4 rounds | 12 problems
Interviewed by MTX
522 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3320 views
0 comments
0 upvotes