i
Expedia
Group
Filter interviews by
The diameter of a tree is the longest path between two leaf nodes in the tree.
Calculate the longest path between two leaf nodes in the tree
This can be done by finding the height of the left and right subtrees and adding them together
The diameter of the tree is the maximum of either the diameter of the left subtree, the diameter of the right subtree, or the sum of the heights of the left and right subtrees
Design a hotel booking system for managing reservations and availability.
Use a database to store hotel information, room availability, and reservations.
Implement user authentication and authorization for booking.
Include a search feature for users to find available rooms based on their criteria.
Allow users to make reservations, modify or cancel them.
Send confirmation emails to users after successful bookings.
Find the longest subsequence in an array with sum zero.
Iterate through the array and keep track of the running sum.
Store the running sum in a hashmap along with the index.
If the same sum is encountered again, the subsequence between the two indices has a sum of zero.
Design a parking lot system with features like parking, retrieving, and tracking available spots.
Create a ParkingLot class with attributes like total number of spots, available spots, and a list of parked vehicles.
Implement methods for parking a vehicle, retrieving a vehicle, and tracking available spots.
Use data structures like arrays or lists to manage parked vehicles and available spots.
Consider implementing fe...
Create subarrays with sum = 0 from given array of integers.
Iterate through the array and keep track of the running sum.
Store the running sum in a hashmap and check if the current sum - any previous sum equals 0.
If yes, then the subarray between those two indices has a sum of 0.
The left view of a binary tree is the set of nodes visible when the tree is viewed from the left side.
Traverse the tree in a level order manner and keep track of the first node at each level.
Use a queue to store nodes at each level and update the left view nodes accordingly.
Example: For a binary tree with root node 1, left child 2, and right child 3, the left view would be [1, 2].
I applied via LinkedIn and was interviewed in Nov 2023. There were 2 interview rounds.
The left view of a binary tree is the set of nodes visible when the tree is viewed from the left side.
Traverse the tree in a level order manner and keep track of the first node at each level.
Use a queue to store nodes at each level and update the left view nodes accordingly.
Example: For a binary tree with root node 1, left child 2, and right child 3, the left view would be [1, 2].
I applied via Company Website and was interviewed before Mar 2023. There were 4 interview rounds.
Solve sudoku, row and columns should have 1-9 numbers and the numbers shouldnt repeat
I applied via Referral and was interviewed before Aug 2023. There were 4 interview rounds.
The diameter of a tree is the longest path between two leaf nodes in the tree.
Calculate the longest path between two leaf nodes in the tree
This can be done by finding the height of the left and right subtrees and adding them together
The diameter of the tree is the maximum of either the diameter of the left subtree, the diameter of the right subtree, or the sum of the heights of the left and right subtrees
Divide one big integer by another
I applied via Approached by Company and was interviewed before Nov 2022. There were 3 interview rounds.
Brush up on DS and Algorithms
Top trending discussions
I applied via LinkedIn and was interviewed in May 2024. There was 1 interview round.
It was a ideal machine coding round. Consisting of a question to be completed within 45 mins. For a given manager to employee hierarchy, count direct + indirect repartees.
I applied via Referral and was interviewed in Sep 2024. There was 1 interview round.
Print nodes of n-ary tree in arc wise manner from outside
Traverse the tree level by level from outside to inside
Use a queue to keep track of nodes at each level
Print the nodes at each level in a clockwise or anticlockwise manner
I appeared for an interview in Nov 2024, where I was asked the following questions.
To add an element to a complete binary tree, insert it at the next available position, maintaining the complete structure.
1. Identify the next available position in the tree, which is the leftmost empty spot at the last level.
2. Use a queue or array to keep track of nodes for level-order traversal to find the insertion point.
3. Insert the new element as a child of the last node in the queue or array.
4. If the last leve...
Asked medium level graph question.
Asked LLD question with at flow executable.
Mostly DSA expect DP, graph problems
I applied via Job Portal and was interviewed in May 2024. There was 1 interview round.
React based
problem solving round
based on 4 interview experiences
Difficulty level
Duration
based on 1 review
Rating in categories
Software Development Engineer II
270
salaries
| ₹22 L/yr - ₹36 L/yr |
Software Development Engineer 3
98
salaries
| ₹30 L/yr - ₹54.2 L/yr |
Software Development Engineer
76
salaries
| ₹18.6 L/yr - ₹33.8 L/yr |
Data Scientist
67
salaries
| ₹26.6 L/yr - ₹48.3 L/yr |
Software Engineer
64
salaries
| ₹15.1 L/yr - ₹33.6 L/yr |
Amazon
Flipkart
Udaan
BigBasket