Tip 1: Solve a lot of DSA problems — at least 300. This will help you build a strong grasp of most data structure concepts. In interviews, the first set of questions is often from DSA, so solving them confidently will leave a strong impression early on. Performing well here sets a positive tone for the rest of the interview and significantly increases your chances of selection.
Tip 2: Keep working on projects alongside your preparation—don’t wait until the end. Interviewers usually go deep into the details of your projects, so ensure you understand them thoroughly. Focus on building unique, impactful projects with real-world use cases instead of generic ones. This will make your resume stand out and give you an edge.
Tip 3: Be confident during interviews. Don’t hesitate to share your thought process and approaches to problems. Even if you don’t know the optimal solution, start with the brute-force approach and then work on optimizing it. Also, be well-prepared with DBMS queries and theoretical concepts, as these are frequently asked.
Tip 1: You should have a thorough understanding of the resume. They can ask anything from the resume. So it is advised don't put false things in the resume.
Tip 2: Keep the resume structured and try to increase the ATS score of the resume. this will help in getting your resume shortlisted in many companies.
It had 3 coding problems. They were marked as easy, medium and hard. Actually all the problems were kind hard and not that easy. If you solve 2 problems it will increase your chances of selection.
1) Build the tree using an adjacency list from the given edges for efficient traversal.
2) Pre-process for LCA using Binary Lifting to quickly find paths between any two nodes.
3) Handle updates by changing the letter at the specified node when a Type 1 query is given.
4) Answer path queries by collecting and counting distinct letters from U to V using LCA and bit masking.
5) Calculate the final sum by multiplying each result with powers of 30 and taking modulo.
1) Model the chairs as nodes in a graph.
2) Use BFS (Breadth-First Search).
3) Handle circular jumps using modulo arithmetic.
4) Track visited chairs.
5) Return the minimum jumps or -1 if unreachable.
1) Model all states as numbers from 0 to 2^m-1 representing possible elements of the array.
2) Build a graph or transition matrix where an edge exists between states u and v if bitcount(u & v) == K.
3) Use dynamic programming or matrix exponentiation to count the number of valid sequences of length N based on transitions.
4 )Sum over all possible starting states since the array can start with any valid element.
5) Return the result modulo.
It was a face to face interview time was 12pm in afternoon. I reached an hour ago. It turned out to be a 1.5 hrs. interview that had everything covered starting from data structures, operating system oops, dbms, projects etc. The environment was good the office was nice as well. All my college students who got shortlisted were there. Some students from other states were there as well. We all were waiting in lobby. There were multiple interviewers and you can get allotted to anyone based on your luck. Your interview also depends a lot on the interviewer as well.
1) Iterate through all numbers from 1 to n – each number will be checked for zeros.
2) Convert each number to a string to examine its digits individually.
3) Count the number of '0' characters in the string representation of each number.
4) Accumulate the counts in a total counter as you process each number.
5) Return the final total as the number of zeros from 1 to n.



Input: Let the binary be as shown in the figure:
Output: Linked List: 15 -> 40 -> 62 -> 10 -> 20 -> NULL
Explanation: As shown in the figure, the right child of every node points to the next node, while the left node points to null.
Also, the nodes are in the same order as the pre-order traversal of the binary tree.
1) Identify the Pre-order Traversal:
Understand that the desired flattened structure should follow the pre-order traversal of the binary tree, where the root node comes first, followed by the left subtree, and then the right subtree.
2) Iterate Through the Tree:
Use a while loop to traverse the tree starting from the root node.
3) Process Each Node:
If the current node has a left child:
Find the rightmost node in the left subtree.
Connect the rightmost node's right pointer to the current node's right child.
Move the current node's left child to its right pointer.
Set the current node's left pointer to null.
If the current node does not have a left child, simply move to the right child.
4)Repeat Until the End:
Continue the process until all nodes have been processed and the tree is flattened.
There are 25 horses among which you need to find out the fastest 3 horses. You can conduct a race among at most 5 to find out their relative speed. At no point can you find out the actual speed of the horse in a race.
Find out the minimum no. of races which are required to get the top 3 horses. (Learn)
Find the second highest salary from employees table. (Practice)
Tip: Use subqueries(corelated).
Difference between multi programming and multi tasking. (Learn)
Tip: Make short notes and keep revising.

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