Tip 1 : Apart from covering and practicing overall DSA, practice all standard questions for Linked List and Trees.
Tip 2 : Have atleast one project in your resume that you can explain properly or your contribution if it's a group project.
Tip 3 : Do brush up on other core topics like OS, DBMS & OOP's.
Tip 1: Add some personal or group project
Tip 2: Don't add something false
At 3 PM
If the word ‘EXAMINATION’ is coded as 56149512965, then the word ‘GOVERNMENT’ is coded as:
Answer -> 7645954552
What is the time complexity of quick sort ?
#include
int main(){
int num = 987;
int rem;
while(num!=0){rem = num % 4;num = num / 10;}
printf(“%d”,rem);
}
Answer: The ans is 1. The explanation is quite simple. The first iteration, rem = 3(987 % 4) has num = 98. The second Iteration, rem = 2(98 % 4) has num = 9. Therefore the third Iteration, rem = 1(9 % 4) will give num = 1.
#include int main()
{int x;
for (x = 10; x >= 0; x–) {int z = x & (x >> 1);
if (z)printf(“%d “, x);}}
The correct option is d) 7 6 3. The value of z will be 1 for x = 7, 6, and 3 where z is non-zero. So the values 7, 6, and 3 will print on the screen



is_empty(S) : Tests whether stack is empty or not.
push(S) : Adds a new element to the stack.
pop(S) : Removes top element from the stack.
top(S) : Returns value of the top element. Note that this function does not remove elements from the stack.
1) Use of any loop constructs like while, for..etc is not allowed.
2) The stack may contain duplicate integers.
3) The stack may contain any integer i.e it may either be negative, positive or zero.
They conducted the round on google meet in the morning. They will ask to turn the camera on throughout the process. They will start with formal introduction. Then start with asking some theoretical questions on topics like Java, Programming Concepts, OOP's and OS. After that, they will jump to coding part where they will ask to write the solution on any IDE for the given questions.
Explain Threads
Difference b/w String & StringBuilder
Destructor call in Java
Explain Virtual Memory
Explain Round Robin Scheduling



1. If the list is empty, the function immediately returns None because there is no middle node to find.
2. If the list has only one node, then the only node in the list is trivially the middle node, and the function returns that node.
Step 1: I first applied traverse the whole linked list and count the no. of nodes and return the node at count/2.
Step 2: He told to optimise.
Step 3: I knew the better approach so gave the two pointer approach.



I used InOrder traversal through recursion
They conducted the round after the lunch. They will ask to turn the camera on throughout the process. They started with formal introduction and then with some theoretical questions on topics like Java, Programming Concepts, OOP's and OS. After that, they jumped to coding part where they asked to write the solution on any IDE.
Explain any 5 OOP's concept in detail
Difference between compile time and run time polymorphism.
Difference b/w primary, candidate and super
Explain 1NF, 2NF, 3NF, BCNF with examples



1. You can return the list of values in any order. For example, if a valid triplet is {1, 2, -3}, then {2, -3, 1}, {-3, 2, 1} etc is also valid triplet. Also, the ordering of different triplets can be random i.e if there are more than one valid triplets, you can return them in any order.
2. The elements in the array need not be distinct.
3. If no such triplet is present in the array, then return an empty list, and the output printed for such a test case will be "-1".
Step 1: Explained the normal brute force approach in O(N^3).
Step 2: Interviewer asked to optimise it
Step 3: Gave a solution using hashset and optimised to O(N^2)



The Linked Lists, where a1, a2, c1, c2, c3 is the first linked list and b1, b2, b3, c1, c2, c3 is the second linked list, merging at node c1.

Step 1: Run through each LL and get lengths and tail
Step 2: Compare the tails
Step 3: If tails are different then no intersection in present.



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

Solved using the fastPointer and slowPointer method
Conducted in evening on Google Meet. Mostly introduction and questions from resume were asked.
Your introduction, projects, questions on interests or things you have mentioned in resume. Questions like strengths and weaknesses.
Tip 1 : Don't write anything false on resume
Tip 2 : Can ask about work culture and your role in organisation.

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?