Tip 1: Prepare for System Design.
Tip 2: Practice DSA questions thoroughly.
Tip 3: Review OOP and DBMS concepts.
Tip 1: Have at least four projects on your resume.
Tip 2: Do not include false information; you will always get caught. Be genuine.
The interview started with a formal introduction. He asked a lot of questions about the projects I have worked on, then shifted the focus to my past experience. In the end, he just asked two simple DSA questions.



Create a matrix min_cost[n+1][W+1], where n is the number of distinct weighted packets of oranges, and W is the maximum capacity of the bag.
Initialize the 0th row with INF (infinity) and the 0th column with 0.
Now, fill the matrix:
If min_cost[n][W] == INF, then the output will be -1, because this means that we cannot form weight W using these weights. Otherwise, the output will be min_cost[n][W].



• Integers in each row are sorted in ascending order from left to right.
• Integers in each column are sorted in ascending order from top to bottom.
The code implements a solution class that takes a board of characters and a list of words as input. It then performs a depth-first search to find if the words are present on the board. If a word is found, it is added to the output along with its position on the board. The code uses a visited array to keep track of the cells that have been visited during the search. Finally, the function returns a vector of strings, where each string is a word followed by its position on the board.
This round was a technical round combined with a hiring manager round. He started by asking questions about the tech stack used in my past projects, then asked one simple puzzle, and ended the round with one DSA question.
You have a birthday cake and need to cut it into 8 equal pieces using only 3 cuts. How do you do it?
Tip 1: Practice previously asked puzzles.
Tip 2: Explain your thought process to the interviewer.




For the above-linked list, if k=2, then the value at the kth i.e second node from the end is ‘12’.
1.You don’t need to take any input. It has already been taken care of. Just implement the given function and return a pointer pointing to the k-th element from the last of the linked list.
2.It is guaranteed that k<=size of the linked list.
Take two nodes, slowPtr and fastPtr, such that next points to the head.
Take one node to store the head; initially, it’s a dummy node (start), and the next of this node will point to the head. The dummy node is used to handle the edge case where B = N (size of the linked list).
Start traversing until the fast pointer reaches the nth node.
Then, traverse both pointers one step at a time until the fast pointer reaches the end.
Once the traversal is complete, delete the node next to slowPtr.
Finally, return the next of start.
This was a non-eliminatory round that covered basic formalities, a description of the job role, and some basic HR questions.
Tip 1: Ask your doubts about your role.
Tip 2: Prepare for basic HR questions.
Tip 3: Show willingness to learn.

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?