Tip 1 : Solve atleast one problem on leetcode and practise more and more. Number of questions matters but quality matters more.
Tip 2 : try to give leetcode contests so that you got to know how real OAs happens and do upsolve them.
Tip 3 : At least 2 Projects should be there in your resume
Tip 1 : Atleast two projects should be there on your resume.
Tip 2 : try to mention all your achievements on your resume.
So, this round is basically a coding + MCQ round which is conducted on the Hackerearth platform and consists of 2 coding questions and 8 MCQs the time allocated for this round was 90 mins.
Coding Questions: The questions asked were of medium/ hard level of difficulty.



You are given ‘ARR’ = [7, 2, 6, 10, 8] and ‘M’ = 2. We split the array as [ 7, 2, 6] and [10, 8], the maximum of 7 + 2 + 6 and 10 + 8 is 18, which is the minimum possible.



So this round was online and I have shared a zoom link I was supposed to join the meeting at the given time.
The interviewer was very calm and chill and started with a brief introduction of him and told me to introduce myself. After the introduction, he shared with me a doc link and directly jump to the first coding question.
So, after half an hour I got a mail for round – 2.



1. A complete binary tree is a binary tree in which nodes at all levels except the last level have two children and nodes at the last level have 0 children.
2. Node ‘U’ is said to be the next node of ‘V’ if and only if ‘U’ is just next to ‘V’ in tree representation.
3. Particularly root node and rightmost nodes have ‘next’ node equal to ‘Null’
4. Each node of the binary tree has three-pointers, ‘left’, ‘right’, and ‘next’. Here ‘left’ and ‘right’ are the children of node and ‘next’ is one extra pointer that we need to update.


It's important to see that the given tree is a perfect binary tree. This means that each node will always have both children and only the last level of nodes will have no children.
Now, we need to populate next pointers of each node with nodes that occur to its immediate right on the same level. This can easily be done with BFS. Since for each node, we require the right node on the same level, we will perform a right-to-left BFS instead of the standard left-to-right BFS.
Before starting the traversal of each level, we would initialize a rightNode variable set to NULL. Then, since we are performing right-to-left BFS, we would be starting at rightmost node of each level. We set the next node of cur as rightNode and update rightNode = cur. This would ensure that each node would be assigned its rightNode properly while traversing from right to left.
Also, if cur has a child, we would first push its right child and only then its left child (since we are doing right-to-left BFS). Once BFS is completed (after queue becomes empty), all next node would be populated and we can finally return root.



The last task of type a is completed on day last[a].
Currently it takes us res day.
For the task a,
we can do it on res + 1 day,
and it need to be bigger than last[a] + space.
So this task is completed on max(res, last[a] + space) + 1.
We keep doing this for all tasks, and finally return result res



If N = 2 and prerequisite = [[1, 2]]. Then, there are a total of 2 courses you need to take. To take course 1 you need to finish course 2. So, it is possible to complete all courses.
This problem is equivalent to detecting a cycle in the directed graph represented by prerequisites. Both BFS and DFS can be used to solve it using the idea of topological sort. Since pair is inconvenient for implementing graph algorithms, we first transform it to the adjacency-list representation. If course u is a prerequisite of course v, then the adjacency list of u will contain v.
BFS
BFS uses the indegrees of each node. We will first try to find a node with 0 indegree. If we fail to do so, there must be a cycle in the graph and we return false. Otherwise we set its indegree to be -1 to prevent from visiting it again and reduce the indegrees of its neighbors by 1. This process will be repeated for n (number of nodes) times.
So, this round was again online with a senior person working at tekion.
Initially, the interviewer told me the pattern that what he is going to ask in the whole interview.
After the introduction part, he started asking me about the projects that I mentioned in my resume and asked me everything related to them. I was not able to answer every question he asked but I answered most of them.
Then he asked me to design a database for a Hotel Management system.
I was actually not comfortable with the designing part so after 5 mins I told him that I am not comfortable with this so he said don’t worry let us move on.
He then asked me what is your strong point except for DSA.
So I told him that I Know OOPs, OS, and DBMS after that, he started asking me questions like what is synchronization,
What are process scheduling algorithms and to explain every algorithm,
How to handle deadlock, etc?



Let ‘ARR’ be: [1, 4, -5]
The subarray [1, 4, -5] has a sum equal to 0. So the count is 1.
This round was offline and was actually a general discussion round with the company official who visited our campus.
He just asked me about the 3 rounds like .
I also asked him about the fun activities happens in the company and he happily answer that.
So this round last for about 15 mins.
how was your experience or how were the round goes
He also told me to give brief about the project which i had mentioned in my resume.

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?