Tip 1 : CS Fundamental have to be clear specially OS, DBMS
Tip 2 : Know every Details of your Project like you should know the why you used this tech stack, why not other, your specific working part.
Tip 3 : Don't count number of questions you have practice, just as many that will build your confidence on a topic
Tip 1 : Have some projects on resume. If you know those projects with Confidence then only add those in Resume, because these are the most and very deeply asked section from Resume.
Tip 2 : Good understanding of Tech Stack you are writing in Resume. Don't add to impress the Interviewer, Just write those of which you have good knowledge.
The Timing was in the Morning. The Environment is simple, easy to use no webcam and no microphone enabled but there is only one requirement not to change browser tab.


1. The grid has 0-based indexing.
2. A rotten orange can affect the adjacent oranges 4 directionally i.e. Up, Down, Left, Right.
Algorithm:
Step 1 . Create an empty queue Q.
Step 2. Find all rotten oranges and add them to Q.
Step 3. Run a loop While Q is not empty
Step 4. Do following till Q is not empty
Step 5. pop an orange from the queue, rot all adjacent oranges. While rotting the adjacent, make sure that the time is incremented by one if there are adjacent oranges and add them in the Q.
Step 6. Just find minimum time you got from Q, for each Orange U got from Q.



Input: linked list = [1 2 3 4] , k = 2
Output: 3 4 1 2
Explanation:
We have to rotate the given linked list to the right 2 times. After rotating it to the right once it becomes 4->1->2->3. After rotating it to the right again, it becomes 3->4->1->2.
Considering N- size of Linked List
Step -1: First check if k iis greator than the N if it is then first update value of k as ::
k = k%N;
Step - 2 : Now go to kth node
Step - 3 : we need to change the next of kth node to NULL, the next of the last node to the previous head node, and finally, change the head to (k+1)th node. So we need to get hold of three nodes: kth node, (k+1)th node, and last node.
Now we got two linked list
1- which have nodes upto kth nodes
2- which have nodes after kth nodes.
Step 4 :Just attach the first Linked lIst to second Linked list.
Timing was 6 PM
environment name is AmCAT, it's good and simple.
Interviewer was friendly used to give u some advice lke can we do this step.



Explanation : Let's take an example
Petrol_Pump = [1, 2, 3, 4, 5]
Distance = [3, 4, 5, 1, 2]
ind = [0, 1, 2, 3, 4]
Now we will find difference the betweeen Petrol_Pump[i] - Distance[i] = [-2, -2, -2, 3, 3] ===> (sum of all values) ==>0 and if it means solution is exists or else we will return -1
lets take tank as a capacity for storing water as a 0.
if i = 0, index = 0 at that time we will do tank += Petrol_Pump[i] - Distance[i]
if(tank < 0) it means we can't get the result for previous indexes, So we will update to i+1
And at last we will check if total < 0 we will return -1 else we will return our updated index.
So, we calculate the consumption of travel from one Petrol_Pump station to other. If the fuel in tank is less than 0, then reset to zero, because the Petrol_Pump as start cannot support the problem. So, change the start index. And also, calculate the total consumption, so that no need of iteration in clockwise is needed. If total is still negative, then no answer


1. Push(num): Push the given number in the stack.
2. Pop: Remove and return the top element from the stack if present, else return -1.
3. Top: return the top element of the stack if present, else return -1.
4. getMin: Returns minimum element of the stack if present, else return -1.
For the following input:
1
5
1 1
1 2
4
2
3
For the first two operations, we will just insert 1 and then 2 into the stack which was empty earlier. So now the stack is => [2,1]
In the third operation, we need to return the minimum element of the stack, i.e., 1. So now the stack is => [2,1]
For the fourth operation, we need to pop the topmost element of the stack, i.e., 2. Now the stack is => [1]
In the fifth operation, we return the top element of the stack, i.e. 1 as it has one element. Now the stack is => [1]
So, the final output will be:
1 2 1
In this problem I just had to tell them my approach and there was discussion on my approach.
I used two stacks here one to store actual stack elements ( Elements_Stack ) and the other as an extra stack (Min_Stack) to store minimum elements. we maintain push() and pop() operations in such a way that the top of the Min_Stack is provides the minimum element.
Push(int x) // inserts an element x to Min_Stack
1) push x to the Elements_Stack
2) compare x with the top element of the Min_Stack. Let the top element be y.
…..a) If x is smaller than y then push x to the Min_Stack.
…..b) If x is greater than y then push y to the Min_Stack.
int Pop() // removes an element from Min_Stack and return the removed element
1) pop the top element from the Min_Stack.
2) pop the top element from the Elements_Stack and return it.
Step 1 is necessary to make sure that the Min_Stack is updated for future operations.
int getMin() // returns the minimum element from Special Stack
1) Return the top element of the Min_Stack.
Timing was 11 am
Environment is AMCAT it. was very simple.
Interview was a bit strict not to giving a hint of the direction to think, just said whenever you have a solution just tell me.


The problem is solvable by dynamic programming. The approach that I used to solve it is as follows:
Step 1: Initialize a grid of m x n with zeros.
Step 2: the rightmost colum and bottom row with 1's, which denotes that there are only one path from those locations to the bottom-right corner.
Step 3: Calculate the number of paths for each cell of the grid from the second to the last row and column to the top row and the leftmost column. This is done by summing up the cell values from below and right of a particular cell.
Step 4: Pick up the value from the grid[0][0], which now contains the total number of paths from origin to the bottom-right corner.
What is Race Condition?
How can you stop Race Condition to happen?
About Threads - kernal, user threads?
Tip 1: Go through the GFG OS section.
Find 4th Highest Salary in Employees?
Find number of Employees whose birthdates are after 1/11/1990 ( Some Date )
what are Normalisation and it's types.
Tip 1 : MUST have good understanding of ACID properties , normalisation, how to perform Joins in table and practice Queries
Timing was around 8 PM
environment name is Microsoft Tea ms,
Interviewer was friendly.
Question from my Resume, Like about projects what and why I built only on these topics?
Tip 1 : Must know what have you written in your Resume
Why do you wants to join JIO?
Tip 1 : have some prior Knowledge about company

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