Tip 1 : Practice at least 250-300 DSA problems which covers all data structures including dynamic programming.
Tip 2 : Mentioned good projects in your resume and prepare questions related to them in depth.
Tip 3 : Always try to provide an optimal solution to coding problems asked in interviews.
Tip 4 : Work upon your soft skills.
Tip 1: Mention good projects with in depth knowledge on resume.
Tip 2: Do not put false things on resume.
This round was held in the evening, with approx 120 candidates attending it. Audio and webcam was enabled. All the core CS subjects related MCQ's were asked covering DSA, operating systems, databases, and computer networks and aptitude.
Solved this problem using dynamic programming -
1. In a DP[][] table let’s consider all the possible weights from ‘1’ to ‘W’ as the columns and the element that can be kept as rows where the state DP[i][j] will denote the maximum value of ‘j-weight’ considering all values from ‘1 to ith‘. So if we consider ‘wi‘ (weight in ‘ith‘ row) we can fill it in all columns which have ‘weight values > wi‘. Now two possibilities can take place with two scenarios -
1. Fill ‘wi‘ in the given column.
2. Do not fill ‘wi‘ in the given column.
Now we have to take a maximum of these two possibilities,
Formally if we do not fill the ‘ith‘ weight in the ‘jth‘ column then the DP[i][j] state will be the same as DP[i-1][j]
But if we fill the weight, DP[i][j] will be equal to the value of (‘wi‘+ value of the column weighing ‘j-wi’) in the previous row.
So we take the maximum of these two possibilities to fill the current state.
Merge Sort Algorithm -
Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.
The above illustrates shows how merge sort works.
It is compulsory to use the ‘Merge Sort’ algorithm.
Below is the algorithm that I followed -
Step 1: Start
Step 2: Declare array and left, right, mid variable
Step 3: Perform merge function.
if left > right
return
mid= (left+right)/2
mergesort(array, left, mid)
mergesort(array, mid+1, right)
merge(array, left, mid, right)
Step 4: Stop
This round took for about 45 minutes in the morning. They asked me to share my screen and open any coding platform to solve coding questions. They also instructed me to explain my projects in depth.
There is only one space between the values of each column in a row.
For example, Pattern for ‘N’ = 5 will be.
1 2 3 4 5
11 12 13 14 15
21 22 23 24 25
16 17 18 19 20
6 7 8 9 10
Explain what is paging in depth.
Tip 1: Give proper explanation with an example.
Tip 2: Be ready for questions in depth.
This round was Technical + Managerial round, was taken by one of the managers in Dell. He first introduced himself and then asked me the introduce myself, where I told him about my projects. Then asked two coding questions and asked me the favorite fields of interests.
Provide them the optimal result where all testcase would be passed.
What is difference between DELETE and TRUNCATE
The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Can you solve this problem in O(N) time and O(1) space complexity?
I explained them using two approaches, first being the normal recursion and second was three pointer approach.
Last was the HR round, where I was asked to introduce myself. This round was just a formality and it went with an ease.
Introduce yourself and asked about my family background.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you select an element by class name in CSS?