Tip 1: Complete the Striver sheet before your placement starts.
Tip 2: Watch all previous year interview experiences.
Tip 1: Include some good projects on your resume.
Tip 2: Avoid putting false information on your resume because the interviewer can ask you about anything you mention.
There was 3 coding question and you need to solve at least 2 to clear this round.

Input: ‘N’ = 5, ‘M’ = 3, ‘P’ = {1, 2, 4, 5, 3} ‘Q’ = {2, 1, 3}.
Output: {2, 1, 3, 4, 5}.
Since the array ‘P’ should be sorted such that the relative order of ‘Q’ is maintained so, 2 comes before 1 in ‘P’, then 1 comes before 3 and after 2 and then 3 comes before 1 and 2. Finally, all the remaining elements are appended at last in sorted order.






The interviewer asked me two coding questions. The first was a very standard problem, and I solved it in around 10-15 minutes. The second question was new to me. Initially, I started with a brute force approach, but the interviewer asked me to optimize it. Eventually, I managed to solve it using DP



[1, 2, 3, 4] is a strictly increasing array, while [2, 1, 4, 3] is not.
Use recursion with memoization.



Consider the maze below :
0 0 0
0 -1 0
0 0 0
There are two ways to reach the bottom left corner -
(1, 1) -> (1, 2) -> (1, 3) -> (2, 3) -> (3, 3)
(1, 1) -> (2, 1) -> (3, 1) -> (3, 2) -> (3, 3)
Hence the answer for the above test case is 2.
Create a dp array and also create a parent array to trace the path.
In this round, again, two coding questions were asked.



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].
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.
Can you solve this in linear time and constant space complexity?


In the example below, the longest path is between nodes 1 and 3. The length of the path is 3 since the number of edges between node 1 and node 3 is 3. Hence, the answer is 3.

Use DFS to count all valid paths.
No coding questions were asked. The interview asked me about my project and some counter questions.
Also asked questions about Normalization with example, SQL queries etc.
General HR questions were asked like why you want to join the company, your hobbies, etc.
1. Why do you want to join the company?
2. What are your hobbies?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?