100% found this document useful (1 vote)
1K views

Coding: MCQ's

This document provides information about the interview process and questions for Mathworks. It includes: 1. Links to discussion forums about Mathworks interview experiences and questions. 2. Details of the interview rounds which include multiple choice questions, coding questions in languages like C/C++/Java, and questions in MATLAB or Python. 3. Examples of coding questions asked, such as reversing a linked list, finding the minimum cost tree from leaf values, and checking if a bot can reach a destination. 4. A breakdown of sections and types of questions for different tracks, including control systems, signals processing, embedded systems, math, and coding questions.

Uploaded by

WINORLOSE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views

Coding: MCQ's

This document provides information about the interview process and questions for Mathworks. It includes: 1. Links to discussion forums about Mathworks interview experiences and questions. 2. Details of the interview rounds which include multiple choice questions, coding questions in languages like C/C++/Java, and questions in MATLAB or Python. 3. Examples of coding questions asked, such as reversing a linked list, finding the minimum cost tree from leaf values, and checking if a bot can reach a destination. 4. A breakdown of sections and types of questions for different tracks, including control systems, signals processing, embedded systems, math, and coding questions.

Uploaded by

WINORLOSE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

MCQ’s - https://imgur.

com/a/vpfvj31

CODING
https://leetcode.com/discuss/interview-question/427484/Mathworks
https://leetcode.com/discuss/interview-question/504480/Mathworks-Onsite-
Interview
https://leetcode.com/discuss/interview-question/1450465/Mathworks-OTA
Does anyone have the question of Kelly and pebbles where the input parameters
are numOfPebbles and bucketSizes with the function name getBuckets (Hackerrank question)? If
so can you please post the complete question and solution if possible?

Rotate characters of a string for an array of queries. eg if query is 3 and string is “Island” then output
should be “jtmand”.
https://leetcode.com/discuss/interview-question/1472321/Mathworks-OTA
https://leetcode.com/discuss/interview-question/1448703/Mathworks-OTA
Coding Questions:

1. Minimum cost tree from leaf nodes [modification: how to reduce time complexity]
2. Reverse linked list [modification: give iterative instead of recursive approach, then convert it
to reverse linked list in group of k]
3. Check if bot can reach destination from target [https://www.geeksforgeeks.org/check-
destination-reachable-source-two-movements-allowed/]
4. Round-1
Behavioural Interview Hireview
5. Round-2
HackerRank Programming Assignment
6. Section-1

7. 5 MCQ's

8. Probability,Permutations,Analytical Reasoning

9.

10. Section-2

11. 1.CUSTOM-SORT

12. Minimum No.of swaps required to


sort array(Even elements first,Odd elements after even elements)order doesn't
matter

13. 2.Build a tree

14. https://leetcode.com/problems/minimum-
cost-tree-from-leaf-values/
15. same problem

16. Interview-Expreience -https://leetcode.com/discuss/interview-


experience/509984/Mathworks-EDG-Intern-oror-Summer-2020-Reject
https://leetcode.com/discuss/interview-question/887230/Mathworks-Interview-
Question-or-USA-or-EDG-2021
https://leetcode.com/discuss/interview-question/551649/MathWorks-or-2020-OA-or-
Arranging-numbers
https://leetcode.com/discuss/interview-question/221639/MathWorks-or-OA-2019-or-
Office-Building-placement
https://leetcode.com/discuss/interview-question/869612/MathWorks-EDG-OA-New-
Grad-2021
https://leetcode.com/discuss/interview-question/830767/mathworks-or-OA-or-EDG-
Programming-Challenge-or-USA
https://leetcode.com/discuss/interview-question/822409/Mathworks-OA-Can-
someone-share-the-solution
https://leetcode.com/discuss/interview-question/1561552/Mathworks-OA-Tom-and-
Jerry-in-a-Maze
https://leetcode.com/discuss/interview-question/514205/Mathworks-or-EDG-2020-
or-Telephonic-Tech-Round
https://leetcode.com/discuss/interview-question/333903/MathWorks-or-OA-or-
Minimize-the-cost-of-building-a-tree
https://leetcode.com/discuss/interview-question/820355/Mathworks-EDG-Computer-
Science-2021-Full-time-OA
https://leetcode.com/discuss/interview-question/554185/Mathworks-EDG-New-grad-
or-OA-2020-or-Widest-Gap
https://leetcode.com/discuss/interview-question/528041/Mathworks-EDG-New-Grad-
or-OA-2020-or-Ideal-Numbers-In-a-Range
https://leetcode.com/discuss/interview-question/528044/Mathworks-EDG-New-Grad-
or-OA-2020-or-Shortest-path-to-a-number
https://leetcode.com/discuss/interview-question/1515402/Mathwork-OA-Hackerrank

Mandatory : 10 multiple choice on Quants and CS questions - questions were on


probability, difference between structs and unions etc.
Choose any two of Java, C , C++ : each has two coding questions.
1. C: Given two numbers left, right and another number k , find maximum xor of
a,b less than or equal to k such that left<= a< b<= right ;
2. C: Given two strings like abcgh and def return a resultant ⇒ adbecfgh . that
is alternate characters till one string exhausts and append the remaining.
3. C++ : Implement three classes Circle, Rectangle and Square with methods to
calculate area and constructors with parameters.
4. C++ : Given a number N return the number of beautiful arrangements possible
with .numbers 1 to N . An arrangement is said to be beautiful if ith element is
divisible by i or i is divisible by ith element. (i is 1 based index).
Choose any one of Matlab or Python : ( for python a coding question was given to
IITRsolve )
For Matlab : (more than one correct option)
1. A is a 4x 3 matrix, B is a 3 x 3 matrix which of the following is valid : [A B], [A
; B] ,
{A, B} , horzcat(A, B) , vertcat(A, B) .
2. Clear B; B(3)= 1 → what will appear on the command window.
3. A=ones(6) B= rand(6,1) C=2 → which is valid : B*A, C.*B , C*B’*A, etc.
Two more similar syntax based questions were asked.
For Core engineering track → 51 questions in total. One section on control theory,
signal processing and embedded systems MCQ’s , Math and aptitude section,
Coding MCQs , one coding question of C,C++,JAVA . → it was to find
redundancy in
linked list in C++; . FInal section Matlab or python.
1st one https://leetcode.com/problems/k-diff-pairs-in-an-array/
2nd one rolling of string by some constant easy one but condition is writing the code in other
than c++ like java ,c or python
(Does not matter)
https://leetcode.com/problems/beautiful-arrangement/

You might also like