Tip 1 : Practice as many pattern of questions as you can (top interview questions are really helpful)
Tip 2 : Be Thorough with whatever projects on has worked on
Tip 3 : Basic awareness on your tech stack is very important as sometimes question get asked on basic level only
Tip 1 : Resume should highlight the projects you have worked on
Tip 2 : It should be clear and to the point and preferably constrained to one page only
Timing : 8 am
They were 2 back to back coding rounds with 2 diff interviewers



In the given linked list, there is a cycle, hence we return true.

Used the mid point approach.
Slow and fast pointer. Slow pointer moves one step and fast pointer moves 2 steps. If they meet at any point it means the linked list has a cycle


If two nodes have the same position, then the value of the node that is added first will be the value that is on the left side.
For the binary tree in the image below.

The vertical order traversal will be {2, 7, 5, 2, 6, 5, 11, 4, 9}.
Used hashmap. Key - vertical order, value - arraylist of tree nodes.
Main root is present at order 0. Left of root is stored at current order -1 and right of root is stored as current order +1. Applying recursive calls to traverse tree
It was back to back with first round



Can you solve each query in O(logN) ?
We need 2 functions
1. Binary search
2 . Find pivot point. Pivot is the point in which array is rotated
First we find pivot point. If it is the element we return it. If are[0]<=pivot do binary search in left side of pivot else binary search on right side of pivot index



Main step here is the heapify function. We have to create a !ax heap. The max element is present at top of heap. We replace it with last element in the array and heapify the array excluding the last element and repeat this step until array is fully traversed
LLD - Design IRCTC - actors, data functions and data members, basic java oops concepts, a problem on concurrency. If there is one ticked available and more than 1 passenger are trying to book seat how will you design your system for such problem
Tip 1: practice design questions thoroughly especially for experienced roles as they are very important
Tip 2: SOLID principles are very important for LLD rounds and their understanding with examples is important
Tip 3: if you're tech stack is having Java be sure to be awarded of oops concepts in pov of java
Hiring manager round, I was told to introduce myself, projects done in previous company, tech stack and roles and responsibilities. Discussion on Expedia team work , what will I be doing if I join, tech stack and my expectations



If the given string is 56789, then the next greater number is 56798. Note that although 56790 is also greater than the given number it contains 1 '0' which is not in the original number and also it does not contain the digit '8'.
The given string is non-empty.
If the answer does not exist, then return -1.
The given number does not contain any leading zeros.
1. Traverse from left and find the pivot point where current digit is smaller then to its right . Ex 724863, here 4 is the pivot
2 .now find the next largest element in the right. For our example it's 6
3.. swap these 2 digits. 726843 and then reverse from pivot index+1 till last number
Answer will be 726348

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?