Tip 1 : Do a very good amount of DSA questions & make sure to revise them after a period of time which you were unable to solve
Tip 2 : Topics like dbms, oops are asked in many interviews of companies, so make sure you don't ignore them
Tip 3 : Projects play an important role in your selection, so make sure you know about the technology and have decent knowledge about the project
Tip 1 : Resume must be of 1 page only
Tip 2 : All your projects & achievements must be short & brief
This round started near 1pm and was like any other normal test.



Input: 'arr' = [2, 2, 2, 2, 0, 0, 1, 0]
Output: Final 'arr' = [0, 0, 0, 1, 2, 2, 2, 2]
Explanation: The array is sorted in increasing order.
Step 1: I knew this question is to be solved using dutch national flag algorithm.
Step 2: Declared 3 variables, low = 1, mid = 1, high = N
Step 3: I traversed the array from start to end till mid is less than high
Step 4: If current number at index i is 0, swap this number with element at low and increase both(low++, mid++)
Step 5: If current number at index i 1, simply do mid++
Step 6: If current number at index i is 2, swap this number with element at high and decrease both(high--, i--)
Step 7: Return the updated array



If A = [3, 2, 3], and K = 2.
Then max of [3, 2] = 3 and max of [2, 3] = 3
So, the answer will be [3, 3]
If A = [3, 2, 3, 5, 1, 7] and K = 3.
Then max of [3, 2, 3] = 3
Then max of [2, 3, 5] = 5
Then max of [3, 5, 1] = 5
Then max of [5, 1, 7] = 7
So the answer will be [3, 5, 5, 7]
Can you solve the problem in O(N) time complexity and O(K) space complexity?
Step 1: Created deque and added first k element in it. But while adding we check if last element in deque is less than current element to be added, we remove that last element. We do this for all the elements left in deque and add current element only if elements at last of deque are greater
Step 2: Now run loop for remaining elements, firstly we print the first element of deque as it is our required answer for first window. Step 3 & Step 4 comes under for loop
Step 3: Then we remove the element from front of queue if they are out of the current window.
Step 4: Ans now before adding the current element we check same condition as done in step 1 before adding
Step 5: At last we print the first element of deque as it is answer for the last window.
The time for this round was around 12noon.
What is 3-Layered Architecture of DBMS
Tip 1: I referred gfg and tutorials points for my preparation
Tip 2: I tried to cover all interview questions for these topics and it helped me a lot

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?