Tip 1 : Focus More on Linked List and Tree.
Tip 2 : Prepare your project well.
Tip 3 : Practice DSA in a regular manner.
Tip 1 : Have some good projects based on the MERN stack.
Tip 2 : Provide GitHub and Project link in resume.
In the online assessment, 2 coding questions were there and I am able to solve both questions.



Input: 'a' = [2, 4, 6] and 'b' = [1, 3, 5]
Output: 3.5
Explanation: The array after merging 'a' and 'b' will be { 1, 2, 3, 4, 5, 6 }. Here two medians are 3 and 4. So the median will be the average of 3 and 4, which is 3.5.
I solved the problem using binary search in one of the arrays which has a minimum size among the two.



Input: 'a' = [1, 5, 3, 4, 2]
Output: NGE = [5, -1, 4, 5, 5]
Explanation: For the given array,
- The next greater element for 1 is 5.
- There is no greater element for 5 on the right side. So we consider NGE as -1.
- The next greater element for 3 is 4.
- The next greater element for 4 is 5, when we consider the next elements as 4 -> 2 -> 1 -> 5.
- The next greater element for 2 is 5, when we consider the next elements as 2 -> 1 -> 5.
I solved the problem using stack.
My interviewer was very friendly and he always provides hints whenever I was stuck on a problem.



1. The array may contain duplicate elements.
2. The array can also contain negative integers.
3. Every element of the subsequence must be greater than or equal to the previous element.
I solve this problem in linear time complexity with Kadane’s algorithm along with that will also get the subarray that is giving the largest positive-sum


I solved this problem using recursion.



If the input tree is as depicted in the picture:
The Left View of the tree will be: 2 35 2
I solved this problem using recursion.

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