You are on page 1of 6

No Offer

Positive Experience
Average Interview
Application
I applied online. The process took 4+ weeks. I interviewed at MathWorks in October
2016.
Interview
It started off with a phone screening (15 minutes) which was more of a HR Round.
Followed by a Hackerrank where you have to choose 2 sections out of 5 (Python, C/C++,
Java, MATLAB, JavaScript). Followed by a phone interview.
Interview Questions

Basic HR Questions such as Why MathWorks? CGPA? Past Experience?, etc.


Answer Question

Hackerrank Challenge:
Java (6 mcq's and 2 programming questions) - Sort HashMap by value and reversing
words in a sentence.
C/C++ (6 mcqs and 2 programming questions) - initializing base class members from
derived class through derived class constructor and Max Difference in an array. Answer
Question
Helpful

#include <iostream>
using namespace std;

int main() {
//code

int t;
cin>>t;
int n=0;
for(int i=0;i<t;i++){
cin>>n;
int large_diff=0;
int diff=0;
int *num=NULL;
num=new int[n];
for(int j=0;j<n;j++){
cin>>num[j];
}

int small=num[0];
for(int k=1;k<n;k++){
if(small>num[k]){
small=num[k];
}
else{
diff=num[k]-small;
if(large_diff<diff)
large_diff=diff;
}
}

cout<<large_diff<<"\n";
}
return 0;

public class Solution {


public String reverseWords(String a) {

String [] result=a.split(" ");

// for(int j=0;j<result.length;j++)
// System.out.println(result[j]);

StringBuffer sf=new StringBuffer();


int len=result.length;
String str1=null;
for(int i=len-1;i>=0;i--)
{

str1=result[i].trim();

str1=str1.trim();

//System.out.println(str1);
if(str1.equals(" ")||str1.equals(""))
continue;
if(i==len-1&&i==0)
sf.append(str1);
else if (i==0)
sf.append(str1);
else sf.append(str1+" ");

String str=sf.toString();

// StringBuffer fstr=str.trim();
return str.trim();
}
}

Java- Prepare for what and why type of questions.


Why Java Generic?
Code Snippet - Polymorphism
Code Snippet - Typecasting
Code Snippet- Inheritance
Multithreading
Questions from the Online coding challenge about how can you improve the given
solution.
Predict the output of the code snippet.

(2)Technical phone interview round with math,C and MATLAB questions.


JAVA difference between final, finally and finalize keywords
C++: virtual function
About stacks of different threads. Difference between stack memory and heap memory.
Math: birthday paradox,limits,etc
Java: haahtable vs hashmap

Areas included maths, programming, signal processing.

1. Code snippets for c++ programs where I need to predict the output.
2. Normal JAVA object oriented concepts, multi threading, strings etc.
3. General math probability questions and set operations.
The whole interview process was for 1 hr
Interview
The process started with a HR video interview followed by a technical phone screen. The questions
for the video were behavioral; Experience, interest in position, instance of handling multiple
responsibilities. The technical phone screen was for an hour and consisted of basic questions from
C/C++, signal processing, Matlab and calculus.
Interview Questions

1.Difference between cross-correlation and convolution


2. Position of poles for a stable LTI system.
3. Eigenvalues and eigenvectors
4. Pass by Value/Pass by Reference
5. Solve a differential equation

1.what is String Buffer? what is public static void main(String[] args), explain it?..etc

Difference between HashMap and Hashtable.


Difference between StringBuilder and StringBuffer.
OOP questions(Class vs Object vs Instance)
Private fields in Python?
Set/ Venn diagram questions.
Difference between overloading and overriding.

What are generics in java.


Some debugging and output prediction codes.
Generics, String pool etc. Couple of code snippets for javascript. Question related to

Data Structures like what are graphs and describe how HashMap works. Design
questions like how would you design a vending machine. OS related questions like
Critical section, Mutex locks, DeadLock etc and some Maths question related to
probability.
HR round(online video recorded)-15 mins 2.Technical Phone Interview(Math,C/C+

+,Programming Concepts,Control Systems)-1 hour 3.On-site interview(Math,C/C++,Programming


Concepts,Control Systems)-4 rounds 9 am - 2 pm Programming Concepts 1.Given a random array
of numbers.How do you sort them?Select any sorting algorithm and write the pseudo code.(C) I
implemented Merge Sort with merge subroutine I forgot base case ,I added later 2.1/8th of a circle.
(NS)

1. given velocity, v(t) find acceleration a(t) and displacement d(t): SImple integral and derivative
2. Question on rank of a matrix and was given a matrix and was asked rank
3. whats characteristic eqn. of a matrix? Was given a matrix and was supposed to find the equation
4. When is a matrix convertible? A matrix was given
5.
given v1=i-j
v2=k;
find a vector perpendicular to v1 and v2... use cross product

You might also like