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);
}
It was Technical Interview. I have to log on to superset platform for this interview. The timing was morning 09:00 AM IST.
Interviewer first asked me to Introduce myself. after that, he gave two DSA Questions that I was able to solve both question then he asked to optimize the code, I used Java to solve the questions. then he asked about projects, I explained my projects. I have had good Interview experience with him. he was very polite and helpful.



The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Can you solve this problem in O(N) time and O(1) space complexity?
Step 1 : First I gave him a recursive solution. The idea was to reach the last node of the linked list using recursion then start reversing the linked list. Time Complexity: O(N), for Visiting over every node one time
Auxiliary Space: O(N), for Function call stack space.
Step 2: Interviewer asked me to optimise the space complexity.
Step 3: then i gave a iterative solution that uses three pointers curr, prev, and forward to keep track of nodes to update reverse links. Time complexity: O(N). I have not used any extra space so Space complexity: O(1)



Do not allocate extra space for another array. You need to do this by modifying the given input array in place with O(1) extra memory.
'n' = 5, 'arr' = [1 2 2 2 3].
The new array will be [1 2 3].
So our answer is 3.
Step 1: I gave a solution using hashSet. I copied the array element each one by one in hashset. after this operation I copied all hashset element to new array and returned the array. Time complexity : O(N) and Space complexity : O(N). interviewer was happy with this solution did not ask to optimize it.
It was HR round, conducted in afternoon around 01:00 PM IST firstly HR asked my introduction, after that she verified my aadhar Card and 12th Marksheet. she also asked some typical HR round questions like why do you want to join Cognizant? In the end she asked " Are you okay with relocation with in India" I said yes. that's it. She was very happy with my answers.
PS: I got selection mail from our College TPO after 3 weeks.
Why do you want to join Cognizant?
Are you ok with relocation?
Tip 1: improve your soft skills
Tip 2: Keep your documents handy for showing to HR
Tip 3: prepare a good Introduction to give impression to HR

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: