Tip 1 : Practice questions on each data structure
Tip 2 : Practice previously asked questions and there are many videos on Youtube which have made DSA sheets, just do all the important questions. Try to solve 500 questions in total to become fully prepared for coding rounds.
Tip 3 : Make a notebook for all the questions you do, note down the approach and code on a copy, it comes out to be very beneficial for revision.
Tip 1 : Have some good projects in the resume.
Tip 2 : If you have done any internship, then it will be a plus point. If you don't have internships then you should have some good competitive programming ranks.
It was an online round with coding questions, MCQs and a technical writing part



1. If any two numbers have the same count of set bits, then in the sorted array they will appear in the order in which they appear in the original array. For example, let the array be { 2, 4, 3}, in this case, both 2 and 4 have the same number of set bits so the answer will be {3, 2, 4} and not {3, 4, 2}, because in the original array 2 appears before 4.
2. The array may contain duplicate elements.



If a lamp is present at index 'I', then it illuminates index 'I' - 1, 'I' and 'I' + 1.
If a lamp is present at index 0, then it illuminates only 0 and 1.
Given that the length of the string is greater than or equal to 2.
If a lamp is present at the last index, then it illuminates the last and the second last index, given that the length of the string is greater than or equal to 2.
The length of each string is guaranteed to be at least 1.
Matrices, determinants and polynomial equations MCQs are their
All of them are of engineering mathematics level
A situation is given, we have to write a technical article of around 300-500 words (I dont remember exact word limit)
It was an online telephonic round, I was aksed to share my screen and to open my code editor. I generally code in VS Code, So I shared my VS code screen with the interviewer.
Timing - 4pm
Environment was good
Interviewer was nice person



• The left subtree of a node contains only nodes with data less than and equal to the node’s data.
• The right subtree of a node contains only nodes with data greater than and equal to the node’s data.
• Both the left and right subtrees must also be partial binary search trees.

Level 1:
All the nodes in the left subtree of 4 (2, 1, 3) are smaller
than 4, all the nodes in the right subtree of the 4 (5) are
larger than 4.
Level 2 :
For node 2:
All the nodes in the left subtree of 2 (1) are smaller than
2, all the nodes in the right subtree of the 2 (3) are larger than 2.
For node 5:
The left and right subtree for node 5 is empty.
Level 3:
For node 1:
The left and right subtree for node 1 are empty.
For node 3:
The left and right subtree for node 3 are empty.
Because all the nodes follow the property of a Partial binary
search tree, the above tree is a Partial binary search tree.
I first explained that what is a BST.
Then Interviewer gave me an example and asked me to explain it and code it.
I was then started writing the code and explaining each line to the Interviewer that what I am doing.
Finally it was done and explained it further including all the corner cases



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 from scratch that what will be our algorithm and what all nodes I am gonna make and the purpose of each node.
Bonus Tip: Communicate with interviewer consistently, don't just keep quit all the time
Finally I solved it and interviewer was satisfied with my approach.
I gave the solution using 2 pointer approach as it can solve it in linear time complexity.
I explained this question by giving an example and implementing my approach on that example.
interviewer was convinced.

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