Tip 1 - Practice Atleast 250 Questions
Tip 2 - Ex- Do atleast 2 projects
Tip 1 : Have some projects on resume
Tip 2 : well formatted resume
My interview was scheduled at 4 p.m.
Before beginning the interview, I was asked to show my college ID card to the interviewer, who was a Senior Developer.



Let ‘N’ = 4, ‘Arr’ be [1, 2, 5, 4] and ‘K’ = 3.
then the elements of this array in ascending order is [1, 2, 4, 5]. Clearly, the 3rd smallest and largest element of this array is 4 and 2 respectively.
s1 - Create a max-heap using the STL priority_queue.
s2 - Insert all elements of the array A into the max-heap.
s3 - Keep only the k smallest elements in the heap by popping the largest elements until the heap has k elements.
s4 - The top element of the heap is the kth smallest element in the array.
Difference between SQL and NoSQL databases.
What is virtual memory
what is the difference between DROP, DELETE and TRUNCATE?
Tip 1:Be confident
Tip 2:Read the major interview topics of DBMS.
Tip 3:Simply say NO if you do not know the answer.
Explain the lifecycle of process.
Tell About OS, CPU and Deadlock
Tip 1 : Just Do some interview questions on OS



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

Tell 2 approaches-
s1- one with the hashmap-
Individually traverse the list, adding node addresses to a Hash Table.
If NULL is reached at any point, return false.
Return true if the next current node points to any of the previously stored nodes in Hash.
another with Floyd’s Cycle-Finding Algorithm:
Two pointers are used to traverse a linked list.
Move one pointer (slow p) one step and another pointer (fast p) two steps.
There is a loop if these pointers meet at the same node. If no pointers meet, the linked list does not have a loop.
My interview was scheduled at 6 p.m.
Before beginning the interview, I was asked to show my college ID card to the interviewer, who was a Senior Developer.



s1- So, this is a graph problem. We shall create the edge s[i] - s[n-i-1] for each index I if s[i]!= s[n-i-1].
s2- Following that, we obtain k graph components.
Now we'll find the sizes of all those components and add them up to ans variable as ans+= sz() - 1; the result will be saved in ans variable.


1. Choose any list ‘A’ or ‘B’.
2. Traverse from left to right.
3. After picking a number, if the picked number is present in both the arrays, you are allowed to traverse to the other array.
Since the answer can be very large, print answer % (10^9 + 7).
If the given array are ‘A’ = [1,3,5,7,9] and ‘B’ = [3,5,100]”.The maximum score can be achieved is 109[1+3+5+100].
s1 - Choose any list ‘A’ or ‘B’.
s2 . Traverse from left to right.
s3 . After picking a number, if the picked number is present in both the arrays, you are allowed to traverse to the other array.



An array ‘B’ is a subarray of an array ‘A’ if ‘B’ that can be obtained by deletion of, several elements(possibly none) from the start of ‘A’ and several elements(possibly none) from the end of ‘A’.
s1- Let us refer to the XOR of all items in the range [i+1, j] as A, [0, I as B, and [0, j] as C. When we XOR B with C, the overlapping elements from B and C in [0, I zero out, and we receive XOR of all elements in the range [i+1, j], i.e. A. We have B = A XOR C because A = B XOR C.
s2- Now, if we know the value of C and take the value of A as m, we may calculate the count of A as the number of B that satisfy this connection. We basically get the count of all subarrays with XOR-sum m for each C.

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