Tip 1: Do at least 3 projects.
Tip 2: Practice questions on coding platforms for each topic thoroughly.
Tip 3: Participate in contests regularly.
Tip 1: Have at least 3 projects.
Tip 2: Use bullet points instead of full sentences.
It was at around 4 PM in the evening. The test was having 3 sections. It consisted of 3 sections for both roles.
Section A - MCQ: Probability, Statistics, Calculus and Linear Algebra.
Section B - 3 coding questions
Section C - Situational/behavioural question
You are given an n×n matrix A, which can contain floating-point numbers. Write a function to find its inverse. If the matrix is singular (i.e., it doesn't have an inverse), return None.
1. Input matrix A.
2. Check if A is square.
3. Calculate the determinant of A.
4. If determinant ≠ 0, compute inverse.
5. Return the inverse or None.
You are given two matrices A and B where: Matrix A has dimensions m x n (i.e., it has m rows and n columns). Matrix B has dimensions n x p (i.e., it has n rows and p columns). Write a function that multiplies these two matrices and returns the resulting matrix C.
1. Initialize Matrix C: Create a matrix C of dimensions m x p, and initialize all elements to 0.
2. Loop through rows of A: For each i from 0 to m-1 (iterate over the rows of A).
3. Loop through columns of B: For each j from 0 to p-1 (iterate over the columns of B).
4. Compute dot product for C[i][j]: For each k from 0 to n-1:
5. Multiply A[i][k] by B[k][j].
6. Add the result to C[i][j].
7. Return Matrix C: Once all rows and columns are processed, return the matrix C as the final result.
The interviewer began with my introduction and then asked me to briefly discuss my resume. We had a very thorough discussion about one of my projects.
Next, she moved on to some coding questions—one on binary search and the other on dynamic programming. I was asked to write the pseudocode on paper, explaining the logic and thought process behind it.
Following that, there were aptitude and mathematical questions. The topics included:
- Conditional Probability
- Uniform Probability Distribution
- A question about a rod of a particular length that has to be cut into three parts: What is the probability that after two cuts, it forms a triangle?
Lastly, we had some general discussions about my interests and preferences.
Input: ‘n’ = 7
Output: 2
Explanation:
The square root of the number 7 lies between 2 and 3, so the floor value is 2.
Started with the brute force approach and then the optimized approach using binary search.
We are given a rod of size ‘N’. It can be cut into pieces. Each length of a piece has a particular price given by the price array. Our task is to find the maximum revenue that can be generated by selling the rod after cutting( if required) into pieces.
1. Express the problem in terms of indexes.
2. Try out all possible choices at a given index.
3. Return the maximum of take and notTake.
Round 3 began with a detailed discussion of all my projects. Since my branch is Engineering Physics, I was asked some core physics questions, particularly on thermodynamic equations with boundary conditions. There were also a few mathematical questions on Taylor expansion and Gaussian distribution. I don’t explicitly remember all the questions, but they were quite challenging. In some cases, when I got stuck, the interviewer was kind enough to guide me through. There was also a question on the Newton-Raphson method. After this, we discussed the role at the firm and the expectations from me.
Consider a heat-conducting rod of length L with its ends maintained at fixed temperatures. The temperature distribution along the rod at steady state is described by the differential equation:
^2()/^2 = 0
where T(x) represents the temperature at position x along the rod, and x is the distance from one end of the rod.
If the boundary conditions are (0)=0 and ()=
how would you determine the temperature distribution () along the rod?
Tip 1: Think out loud.
Tip 2: Don't hesitate to ask for clarification and hints.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is 3 + 2 * 4 based on operator precedence?