Tip 1 : Practice regularly .
Tip 2 : be focused while doing prep.
Tip 3 : Proactively looking what companies ask.
Tip 1 : Good projects atleast knowledge of one framework (Spring,react...)
Tip 2 : Regularly practice DSA.
30 MCQ and 2 coding questions all to solve in 60 min.



1. The heights of the buildings are positive.
2. Santa starts from the cell (0, 0) and he has to reach the building (N - 1, M - 1).
3. Santa cannot leave the grid at any point of time.
class Solution {
public int jump(int[] nums) {
if(nums.length == 1){
return 0;
}
int max = 0;
int curr = 0;
int count = 0;
for(int i = 0 ; i < nums.length - 1 ; i++){
max = Math.max(max , i + nums[i]);
if(curr == i){
curr = max;
count++;
}
if(curr>nums.length-1){
return count;
}
}
return count;
}
}



For this question, you can assume that 0 raised to the power of 0 is 1.
public double myPow(double x, int n) {
double result = 0;
if (n == 0) return 1;
else if (n == 1) return x;
else if (n == -1) return 1.0 / x;
if (n % 2 == 0)
return myPow(x * x, n / 2);
else
return x * myPow(x * x, (n - 1) / 2);
}
two coding questions.



In zigzag order, level 1 is printed from left to right fashion, level 2 is printed from right to left. and level 3 is printed from left to right again, and so on…..
For the given binary tree

The zigzag traversal is [1, 4, 3, 5, 2, 7, 6]
public List> zigzagLevelOrder(TreeNode root) {
List> ans = new LinkedList();
if(root==null){
return ans;
}
Queue q = new LinkedList();
q.add(root);
int level = 1;
while(!q.isEmpty()){
List l = new ArrayList();
int c = q.size();
for(int i=0;i ll = new ArrayList();
for(int i =l.size()-1;i>=0;i--){
ll.add(l.get(i));
}
ans.add(ll);
}else{
ans.add(l);
}
level++;
}
return ans;
Data Structure 1 question, OOPs and DBMS and Project related questions.



Let’s say we have n=4 nodes, 'LEFT_CHILD' = {1, -1, 3, -1} and
RIGHT_CHILD = {2, -1, -1, -1}. So the resulting tree will look like this:
It will return True as there is only one valid binary tree and each node has only one parent and there is only one root.
Package ?
DOJ(date of joining)
Tell me about yourself.
what you know about company?
why we hire you??
5 year goal in company?
Vision of company?

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