Tip 1 : Work on Competitive Programming skills. That is one thing most companies look out for during hiring. Solve at least 100
questions from every topic.
Tip 2 : You should have at least 2 good projects on your resume. Only write the things that you are completely sure of.
Tip 3 : Work on CS fundamentals as well like -OOPS, OS, and DBMS. There will be MCQ questions from this in the coding round as well as in the 1:1 round
Tip 1 : Need at least 2 good projects on the resume. Write a short 2-3 lines summary of the project and the tech stack
used.
Tip 2 : Resume should be 1 page only. Try to keep the Resume short with useful information only.
Tip 3 : Your Resume should clearly mention the skillset you have. Companies sometimes filter out Resume based on
skillset only
It was on zoom from 5PM.
For the given array 'ARR' = [7, 12, 1, 20]
The next greater element for 7 is 12.
The next greater element for 12 is 20.
The next greater element for 1 is 20.
There is no greater element for 20 on the right side.
So, the output is [12, 20, 20, -1].
It can be solved by taking 2 arrays: LeftArray[] and RightArray[].
LeftArray should contain max element from left side till index i. RightArray should contain the min element from the right side starting from the last index.
Now iterate over the given array and check if its greater than leftarr[i-1] and smaller than rightArray[i+1], if yes then print it else skip
class BinaryTreeNode {
int data; // Value of the node.
BinaryTreeNode *left; // Pointer to left child node.
BinaryTreeNode *right; // Pointer to right child node.
BinaryTreeNode *next; // Pointer to next right node at same level.
}
Consider the figure shown below. The left part represents the initial binary tree and right part represents the binary tree after connecting adjacent nodes at the same level.
In the tree shown in the picture above -:
The ‘next’ pointer of the node having value 2 is connected to the node having value 3.
The ‘next’ pointer of the node having value 4 is connected to the node having value 5.
The ‘next’ pointer of the node having value 5 is connected to the node having value 6.
The ‘next’ pointer of nodes having value 1, 3, 6 will have a value NULL as there are no next right nodes in their cases.
1. The structure of the ‘Node’ of a binary tree is already defined. You should not change it.
2. The root of the binary tree is known to you.
3. There is at least one node in the given binary tree.
4. You may only use constant extra space.
It can easily be solved by level order traversal. We only need to check the condition if the element->nextRight is NULL then point this element to NULL. Also one case can be to mark next of root element as NULL
Why do you want to change?
What You are expecting from this role?
How will you resolve conflicts with your team members?
Tip 1 : Prepare keep answers to some basic HR Questions ready before the interview
Tip 2 : Keep answers short and to the point
Tip 3 : Don't oversell yourself. For ex: sometimes people keep saying they are very hardworking and it's their weakness and all. Please don't say these things as it might give wrong impression to interviewer
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which SQL keyword removes duplicate records from a result set?