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

SDE

Mathworks
upvote
share-icon
5 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6-8 months
Topics: Data Structures, Object-oriented programming, Database Management System ,Operating System , Web Development, System Design(just few examples).
Tip
Tip

Tip 1 : Starting early could bring in a lot of benefits.
Tip 2 : Maintain a decent CGPA, depending on your college.
Tip 3 : Competitive Coding adds more value.
Tip 4 : Not only DSA but DBMS,OOPS and OS also plays an important role. Prepare them well.

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

Tip 1 : Keep your resume length short
Tip 2 : Add links for your various coding platform profiles and projects.

Interview rounds

01
Round
Hard
Online Coding Interview
Duration90 minutes
Interview date11 Nov 2022
Coding problem2

There were 2 coding questions and these were to be completed using 2 different languages out of C, C++, and Java. Different candidates were given different sets of questions.Keeping aside the coding questions, the test also comprised of 44 MCQ's ranging from aptitude questions to Programming concepts on C, C++, and Java, which predominantly focused on OOPs and output questions for the most part.

1. Longest String Chain

Moderate
0/80
Asked in companies
FacebookMathworksGroupon

You are given an array 'arr' of strings, where each string consists of English lowercase letters.


A string chain of 'arr' is defined as:

(1) A sequence of string formed using elements of 'arr'.

(2) Every string in the sequence can be formed by inserting a lowercase English letter into the previous string (except the first string).


Find the length of the longest possible string chain of 'arr'.


Example :
Input: 'arr' = ["x", "xx", "y", "xyx"] 

Output: 3

Explanation:
The longest possible string chain is “x” -> “xx” -> “xyx”.
The length of the given chain is 3, hence the answer is 3.


Try solving now

2. Maximum Path Sum Between Two Leaves

Hard
50m average time
35% success
0/120
Asked in companies
OYOAmazonMathworks

You are given a non-empty binary tree where each node has a non-negative integer value. Return the maximum possible sum of path between any two leaves of the given tree.

The path is also inclusive of the leaf nodes and the maximum path sum may or may not go through the root of the given tree.

If there is only one leaf node in the tree, then return -1.

Try solving now
02
Round
Hard
Face to Face
Duration60 minutes
Interview date25 Nov 2022
Coding problem4

The round started with an introduction, followed by 20-25 sets of MCQ on DSA, OOPS, OS, and DBMS. Followed by 2 coding questions to be solved in 2 different languages and some questions on OS.

1. Find The Sum Of The Left Leaves

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

Given a binary tree with ‘root’. Your task is to find the sum of all the left leaf nodes.

Properties of leaf:-

In a binary tree, a leaf is a node such that it does not have any children. Node ‘1’ is always the root of the binary tree. Left leaves are those nodes that are the left child of their parent and a leaf node.

Example:
Let’s say you have a binary tree as follows:-

subsequence

Node 4 and Node 5 are leaf nodes and left child of their parent. Node 6 is a leaf node but not the left child of its parent node 3. Therefore return ‘4+5= 9’ as the answer.

Note:
You do not need to print anything; it has already been taken care of. Just implement the function.
Problem approach

Step 1 : Adding the base case first i.e. to check if the root is not NULL or If the right child and left child do not exist.
Followed by this was a DFS call to the left subtree and right subtree.

Step 2 : Interviewer asked me for a BFS problem.

Step 3 : The BFS problem involves a while loop along with a stack.

Step 4 : Interviewer was quite satisfied with my approach.

Try solving now

2. Total Strings

Moderate
15m average time
86% success
0/80
Asked in companies
MicrosoftInnovaccerMathworks

You are given a positive integer 'N'. Your task is to find the number of strings of length ‘N’ that can be formed using only the characters ‘a’, ‘b’ and ‘c’. The strings formed should be such that the number of ‘b’ and ‘c’ in the string is at most 1 and 2, respectively.

Example:
Let’s say N = 2. The strings of length 2, which satisfy the given constraints are: “aa”, “ab”, “ac”, “ba”, “bc”, “ca”, “cb”, “cc”. Hence, the output is 8.
Try solving now

3. Operating System Question

What do you mean by Semaphore in OS? Why is it used?

4. Operating System Question

What is a deadlock in OS? What are the necessary conditions for a deadlock?

03
Round
Medium
HR Round
Duration40 minutes
Interview date25 Nov 2022
Coding problem1

This round focussed on basic HR questions relating to time management, work ethics, uniqueness, strengths, and weaknesses, etc.

1. Basic HR Questions

What are your strengths and weaknesses?

Why do you want to join us?

04
Round
Hard
Face to Face
Duration45 minutes
Interview date25 Nov 2022
Coding problem1

This round started with a brief introduction of the candidate. Later questions were derived from the introduction itself. Give them proper and articulate answers in brief.Asked to explain one of my projects and what tech stack was used. Then questions about EDG program, previous work experience, time management, team work, and other basic questions were asked.

1. Technical Questions

Introduction.

Previous Work experiences.

Questions related to Projects.

How do I manage time?

05
Round
Medium
Group Discussion
Duration20 minutes
Interview date25 Nov 2022
Coding problem0

This was held in the starting, right after clearing the online test. Basically, the communications skill were tested for the candidate.

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
company logo
SDE - Intern
5 rounds | 7 problems
Interviewed by Mathworks
732 views
0 comments
0 upvotes
company logo
Software Engineer
5 rounds | 7 problems
Interviewed by Mathworks
865 views
1 comments
0 upvotes
company logo
SDE - 1
4 rounds | 16 problems
Interviewed by Mathworks
506 views
0 comments
0 upvotes
company logo
Associate in EDG
3 rounds | 3 problems
Interviewed by Mathworks
392 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE
3 rounds | 6 problems
Interviewed by PhonePe
0 views
0 comments
0 upvotes
company logo
SDE
4 rounds | 7 problems
Interviewed by PhonePe
0 views
0 comments
0 upvotes
company logo
SDE
3 rounds | 4 problems
Interviewed by Amazon
1303 views
2 comments
0 upvotes