Tip 1 : Practice at least 300 questions.
Tip 2 : Do at least 2 projects to discuss during the interview.
Tip 3 : Have a good grasp of what is written on the resume.
Tip 1 : Have some good projects on your resume (Minimum 2) and you should know each and every single detail about the project.
Tip 2 : Don't fake on resume and be true.
This round is online OA Round contains 20 MCQ's and 2 Medium-Hard Coding Question.



'ARR' = [3, 4, -1, 1, 5] and 'K' = 3
Output = [4, 4, 5]
Since the maximum element of the first subarray of length three ([3, 4, -1]) is 4, the maximum element of the second subarray of length three ([4, -1, 1]) is also 4 and the maximum element of the last subarray of length three ([-1, 1, 5]) is 5, so you need to return [4, 4, 5].
So this problem can be solved using Heap.
I have created max Heap of pair in C++. The first pair will be the element and the second will be the index of that element in the given array.
Then I used the sliding window technique.Firstly I have inserted the elements in the heap till their size is < k. As soon as its size becomes >= k then I am taking out its top.first element (Max element in case of the max heap) and insert it to output vector and then pop out the elements which are of no use that is not there in the current slide.
This way I did this problem.
It is a 1-hour interview and in the beginning, asked to introduce then there is a discussion about the projects there in the resume and then 2 easy-level DSA questions were asked.



In the given linked list, there is a cycle, hence we return true.

Here I have used a slow and fast pointer approach.
The idea is to have 2 pointers: slow and fast. Slow pointer takes a single jump and corresponding to every jump slow pointer takes, fast pointer takes 2 jumps. If there exists a cycle, both slow and fast pointers will reach the exact same node. If there is no cycle in the given linked list, then fast pointer will reach the end of the linked list well before the slow pointer reaches the end or null.
Initialize slow and fast at the beginning.
Start moving slow to every next node and moving fast 2 jumps, while making sure that fast and its next is not null.
If after adjusting slow and fast, if they are referring to the same node, there is a cycle otherwise repeat the process
If fast reaches the end or null then the execution stops and we can conclude that no cycle exists.



In this question, we have to find the number of islands. So I just simply applied the DFS from any 1 in the 2D matrix and mark visited in the visited matrix and keep the counter on each DFS call.
It was again an interview with the manager and He first ask me to introduce myself and then asked about the projects there in my resume. This interview was a general discussion with the manager.He asked me some OS, DBMS,Computer Networks questions, and 2 easy DS questions.
What is IPC? What is the different IPC mechanisms?
Tip 1 : Read Galvin for OS thoroughly
Mention the issues with traditional file-based systems that make DBMS a better choice?
What is meant by ACID properties in DBMS?

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