Tip 1 : Focus on basic Data Structures - Arrays, Linked List, String, HashMap, Stack Queue.
Tip 2 : Prepared your Projects very well. They will ask a lot about it. Do 2-3 projects so that you have lot of content to speak about.
Tip 3 : Have some practice on writing codes without any IDE support. Try writing code on Notepad or simply on paper.
Tip 1 : Focus on Skills
Tip 2 : Make it as crisp as you can.
Tip 3 : Never lie on your resume.



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?



Here, sorted paths mean that the expected output should be in alphabetical order.
Given a square matrix of size 4*4 (i.e. here 'N' = 4):
1 0 0 0
1 1 0 0
1 1 0 0
0 1 1 1
Expected Output:
DDRDRR DRDDRR
i.e. Path-1: DDRDRR and Path-2: DRDDRR
The rat can reach the destination at (3, 3) from (0, 0) by two paths, i.e. DRDDRR and DDRDRR when printed in sorted order, we get DDRDRR DRDDRR.



Input: 'arr' = [1, 2, 7, -4, 3, 2, -10, 9, 1]
Output: 11
Explanation: The subarray yielding the maximum sum is [1, 2, 7, -4, 3, 2].




For the given binary tree: the LCA of (7,8,10) is 1
All of the node values of the binary tree will be unique.
N1, N2, and N3 will always exist in the binary tree.
It was a standard question so it was easy to solve



Consider ARR = [1, 2, 3, 4, 4], the duplicate integer value present in the array is 4. Hence, the answer is 4 in this case.
A duplicate number is always present in the given array.
Tell me about yourself
What do you know about Cognizant and work culture here?
What are your strengths and weaknesses?
What was your role in the internships you did?

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: