Tip 1 : Be very clear with your project explanation.
Tip 2 : Practice at least 500 dsa problem
Tip 3 : Also try to cover all the cs core subjects explanation clearly.
Tip 1 : Make it clean with appropriate knowledge.
Tip 2 : Provide true information .
It was morning time and from 10:00 am . It happened via the google meet online process and it was very smooth onboarding . Interviewer was very friendly kind of nature . I completed the question with optimised approach.



Let ‘ARR1’ = [1, 5, 10, 15, 20] and ‘ARR2’ = [2, 4, 5, 9, 15]
In this example, common points are 5, 15.
First, we start with ARR2 and take the sum till 5 (i.e. sum = 11). Then we will switch to ‘ARR1’ at element 10 and take the sum till 15. So sum = 36. Now no element is left in ‘ARR2’ after 15, so we will continue in array 1. Hence sum is 56. And the path is 2 -> 4 -> 5 -> 10 -> 15 -> 20.

It was afternoon session and the interviewer was very supportive in nature and gave me the hint too to think the approach and finally i came up the solution which he was expecting.



Input: Consider the following Binary Tree:
Output:
Following is the level-order traversal of the given Binary Tree: [1, 2, 3, 5, 6, 4]
PROGRAM:
vector zigZagTraversal(Node* root)
{
// Code here
vectorv;
queueq;
if(root==NULL)
return v;
q.push(root);
int c=0;
while(!q.empty())
{
int s=q.size();
vectorv2;
Node*front;
for(int i=0;idata);
if(front->left!=NULL)
q.push(front->left);
if(front->right!=NULL)
q.push(front->right);
}
c++;
if(c%2==0)
reverse(v2.begin(),v2.end());
v.insert(v.end(), v2.begin(), v2.end());
}
return v;
}
It was late evening and happened in a very smooth way.
What is a Scheduling Algorithm?
Tip 1:Try to explain via the real life example.
Ans:
A scheduling algorithm is a process that is used to improve efficiency by utilizing maximum CPU and providing minimum waiting time to tasks. It simply deals with the problem of deciding which of outstanding requests is to be allocated resources. Its main aim is to reduce resource starvation and to ensure fairness amongst parties that are utilizing the resources. In simple words, it is used to allocate resources among various competing tasks.
What is the difference between paging and segmentation?
Paging: It is generally a memory management technique that allows OS to retrieve processes from secondary storage into main memory. It is a non-contiguous allocation technique that divides each process in the form of pages.
Segmentation: It is generally a memory management technique that divides processes into modules and parts of different sizes. These parts and modules are known as segments that can be allocated to process.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: