Tip 1 : Practice Tree and DP problems more, generally asked in most interviews
Tip 2 : Clear your concepts and approach more rather than concentrating on number of questions you solved
Tip 1 : Explain your project properly in points
Tip 2 : Know properly whatever you have written on your resume


Suppose Ninja is currently standing at X city and want to visit Y city. Let the heights of all the cities in the path from X to Y(including X and Y) are 10 20 5 30. Now these series of heights forms and alternate series. So Ninja will visit the city Y.
Some examples of alternate series are 15 4 11 8 25, 100 120 50 70 60 but the series like 3 5 4 1, 6 3 10 12 are not alternating.
1 X Y: change the height of city X to Y.
2 X Y: Check whether the path between city X to Y is alternating or not.



• You can make ‘B’ from ‘S’ by removing some characters and rearranging some characters zero or more times.
• Length of ‘S’ must be as minimum as possible.
Testcases are generated such that a substring always exists and is unique.
A = ninjas, B = sin
All possible substrings with which 'B' can be created are
"ninjas", "injas".
Hence the substring with minimum length is "injas".
I used sliding window and hashmap for this problem
2 coding questions were there
Approach is discussed along with time and space complexity
Asked to write the pseudo code for both



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.
Approach 1- As the given array is sorted we create a new array and find median
Approach 2 - we need to find out the number of elements to be picked up from first array that will come before the median and number of elements from second array that will come in prefix subarray of the median can be calculated as total elements/2 - no. of selected elements from first array. Also, while calculating median we need the value of two middle elements (in case of even number of elements) or just a single middle element (in case of odd number of elements). So, we will keep the track of these values while performing binary search.



1234 is represented as (1 -> 2 -> 3 -> 4) and adding 1 to it should change it to (1 -> 2 -> 3 -> 5).
The input Linked list does not have any trailing zeros.
Approach 1 - Reverse given linked list. Start traversing linked list from leftmost node and add 1 to it. If there is a carry, move to the next node. Keep moving to the next node while there is a carry.
Reverse modified linked list and return head.
2 coding question were asked
detailed discussion on my internship experience and project in my resume
Some basic java questions were asked



You are given ‘GRID’= [[“@.aA”],[“.B#.”],[“...b”]]. Then the answer will be 5.




We first find the LCA of two nodes. Then we find the distance from LCA to two nodes.
only approach and time complexity is discussed
This was hiring manager round
This was complete resume based round
Detailed discussion on the project on which i was working on my previous organisation
Some questions on DBMS like sql or no sql difference, use of indexing.

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