i
Oyo Rooms
Filter interviews by
I appeared for an interview in Jan 2021.
Round duration - 90 minutes
Round difficulty - Hard
Timing was 11 am. Platform was quite well.
You need to determine all possible paths for a rat starting at position (0, 0) in a square maze to reach its destination at (N-1, N-1). The maze is represented as an N*N ma...
Find all possible paths for a rat in a maze from source to destination.
Use backtracking to explore all possible paths in the maze.
Keep track of visited cells to avoid revisiting them.
Recursively try moving in all directions (up, down, left, right) until reaching the destination.
Add the path to the result list when the destination is reached.
Sort the result list alphabetically before returning.
You are given an NxM matrix consisting of '0's and '1's. A '1' signifies that the cell is accessible, whereas a '0' indicates that the cell is blocked. Your task is to compute ...
Find the minimum cost to reach a destination in a matrix with specified rules.
Use BFS traversal to explore all possible paths from the starting point to the destination.
Keep track of the cost incurred at each cell and update it accordingly.
Return the minimum cost to reach the destination or -1 if unreachable.
Tip 1 : Practice data structure based questions.
Tip 2 : OOPS is very important.
Tip 3 : Prepare OS and DBMS for mcq.:
Tip 1 : Have some projects on resume.
Tip 2 : Keep it short.
I appeared for an interview in Dec 2020.
Round duration - 90 minutes
Round difficulty - Easy
Given a directed graph, you need to determine whether or not the graph contains a cycle.
Your function should return true
if there is at least one cycle in the graph; ...
Detect cycles in a directed graph and return true if a cycle exists, false otherwise.
Use Depth First Search (DFS) to detect cycles in the graph.
Maintain a visited array to keep track of visited vertices and a recursion stack to keep track of vertices in the current DFS traversal.
If a vertex is visited and is present in the recursion stack, then a cycle exists.
Example: For the input graph with vertices 0, 1, 2 and edges...
Given a permutation of ‘N’ integers, rearrange them to generate the lexicographically next greater permutation. A sequence is a permutation if it contains all integers f...
The problem involves rearranging a permutation of integers to generate the lexicographically next greater permutation.
Understand the concept of lexicographically next greater permutation.
Implement a function to find the next greater permutation.
Handle cases where no greater permutation exists by returning the smallest permutation.
Round duration - 60 minutes
Round difficulty - Easy
Given a binary tree with N
nodes, determine whether the tree is a Binary Search Tree (BST). If it is a BST, return true
; otherwise, return false
.
A binary search tree (BST)...
Validate if a binary tree is a Binary Search Tree (BST) or not.
Check if the left subtree of a node contains only nodes with data less than the node's data.
Check if the right subtree of a node contains only nodes with data greater than the node's data.
Recursively check if both the left and right subtrees are also binary search trees.
Tip 1 : Prepare Data Structures
Tip 2 : Solve atleast 300-400 problems
Tip 3 : Prepare computer science subjects for solving MCQ's
Tip 1 : Projects around oops would be great
Tip 2 : Be confident about everything you write
I appeared for an interview in Nov 2020.
Round duration - 90 minutes
Round difficulty - Medium
The test was scheduled at 2:30 PM, IST. The test was conducted online, due to the ongoing pandemic situation. Webcam was required to be switched on during the complete duration of the test. I had solved 2/2 coding questions with all test cases successfully passing. Out of the 10 MCQ questions, I had done 6. Around 90 students sat for the online coding round, 19 were shortlisted for the interview. Those who had solved both coding questions were called for interview.
Prateek is a kindergarten teacher with a mission to distribute candies to students based on their performance. Each student must get at least one candy, and if two s...
The task is to distribute candies to students based on their performance while minimizing the total candies distributed.
Iterate through the array of student ratings to determine the minimum number of candies required.
Assign each student at least one candy.
Adjust the number of candies based on the ratings of adjacent students to minimize the total candies distributed.
Example: For ratings [5, 8, 1, 5, 9, 4], the optimal ...
Ninja Yuki wants to purchase ninja blades at the Spring Fair in his village. Initially, he has 0 blades, and his goal is to buy 'N' blades. The merchant...
Calculate the minimum cost to acquire a specific number of ninja blades using a given pricing mechanism.
Iterate through each test case to determine the minimum cost needed to acquire the desired number of blades.
Consider the cost of adding 1 blade versus doubling the current number of blades to reach the target quantity.
Keep track of the total cost as blades are acquired based on the pricing mechanism.
Return the minimu
Round duration - 60 minutes
Round difficulty - Medium
This was a pure DSA based round. Two questions were asked in this round. The interviewer was quite good, and helped in between.
Given a string A
consisting of lowercase English letters, determine the first non-repeating character at each point in the stream of characters.
Given a string of lowercase English letters, find the first non-repeating character at each point in the stream.
Iterate through the characters in the string and maintain a count of each character.
Use a queue to keep track of the order of characters encountered.
For each character, check if it is the first non-repeating character by looking at its count in the map.
If a character's count is 1, it is the first non-repeatin...
Given a 2-dimensional boolean matrix mat
of size N x M, your task is to modify the matrix such that if any element is 1, set its entire row and column to 1. Specifi...
Modify a boolean matrix such that if any element is 1, set its entire row and column to 1 in-place.
Iterate through the matrix to find elements with value 1.
Use additional arrays to keep track of rows and columns to be modified.
Update the matrix in-place based on the identified rows and columns.
Round duration - 75 minutes
Round difficulty - Medium
This round was also again focused on DSA. Two interviewers were present. This round was very extensive and everything was asked in depth as well as they asked to write the codes as well for all the questions. I was also asked to explain my projects, they were based on ML. Many aspects of OOPs, POP, memory allocation was asked as well.
Given an array ARR
of size N
, determine the maximum sum of i * ARR[i]
possible through any number of rotations. Both left and right rotations are allowed, and can...
Find maximum sum of i * ARR[i] possible through any number of rotations in an array.
Calculate the sum of i * ARR[i] for each rotation and find the maximum sum.
Consider both left and right rotations.
Optimize the solution to avoid redundant calculations.
Handle edge cases like empty array or single element array.
Given an arbitrary binary tree consisting of 'N' nodes numbered from 1 to 'N'. Each node is associated with a positive integer value. Your task is to ca...
Calculate the average of node values at each level in a binary tree.
Traverse the binary tree level by level using BFS
Calculate the sum of node values at each level and divide by the number of nodes at that level
Print the floor value of the average for each level
Tip 1 : Primary skill to be developed is problem solving, i.e proficient in data structures and algorithms.
Tip 2 : After this, practice competitive programming, start giving contests, this will make you faster.
Tip 3 : Then take any technology, e.g., machine learning, web development etc., make few but good projects using these technologies.
Tip 1 : Make it short, 1-2 pages max. Only mention those projects that you know the best.
Tip 2 : While mentioning projects, do mention numbers in them, like what was the accuracy(in case of ML projects).
What people are saying about Oyo Rooms
posted on 5 Apr 2024
I applied via Recruitment Consulltant and was interviewed before Apr 2023. There were 2 interview rounds.
posted on 21 Jul 2024
Models in Laravel are used to interact with the database and represent data.
Models in Laravel are used to perform database operations such as retrieving, inserting, updating, and deleting data.
Models help in organizing and structuring the data in the application.
Models in Laravel follow the MVC (Model-View-Controller) pattern.
Example: Creating a User model in Laravel to interact with the users table in the database.
SQL joins are used to combine rows from two or more tables based on a related column between them.
Types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.
INNER JOIN returns rows when there is at least one match in both tables.
LEFT JOIN returns all rows from the left table and the matched rows from the right table.
RIGHT JOIN returns all rows from the right table and the matched rows from the left table.
F...
posted on 23 Sep 2021
I applied via Recruitment Consultant and was interviewed in Aug 2021. There were 3 interview rounds.
Next greater element is a problem where we find the closest greater element for each element in an array.
Iterate through the array
For each element, compare it with the elements on its right
Find the first element greater than the current element
Store the result in a new array or data structure
Program to find all prime numbers up to given N.
Start with 2 and iterate up to N
For each number, check if it is divisible by any number from 2 to its square root
If not divisible, add it to the list of primes
Fetching unique URLs from a 10GB file with non-unique URLs.
Read the file in chunks to avoid memory issues.
Use a hash set to store unique URLs.
Iterate through each URL in the file and add it to the hash set if it doesn't already exist.
posted on 30 Jul 2022
I applied via Recruitment Consulltant and was interviewed in Jun 2022. There was 1 interview round.
Zigzag traversal of a tree is a method to visit the nodes in a tree in a zigzag pattern.
Use a queue to perform a level order traversal of the tree.
For each level, alternate the direction of traversal (left to right, then right to left).
Store the values of the nodes in each level in an array of strings.
posted on 27 Nov 2020
I applied via Campus Placement and was interviewed in May 2020. There was 1 interview round.
posted on 11 Dec 2020
Sales focuses on selling products or services, while marketing focuses on promoting and creating demand for those products or services.
Sales involves direct interaction with customers to close deals.
Marketing involves creating strategies to reach and engage potential customers.
Sales focuses on individual transactions, while marketing focuses on long-term customer relationships.
Sales is more tactical, while marketing is...
based on 4 reviews
Rating in categories
Business Development Manager
1.6k
salaries
| ₹4.4 L/yr - ₹14.5 L/yr |
Demand Manager
834
salaries
| ₹3 L/yr - ₹9.6 L/yr |
Key Account Manager
454
salaries
| ₹3 L/yr - ₹10.5 L/yr |
Hotel Manager
440
salaries
| ₹1 L/yr - ₹4.5 L/yr |
Guest Relation Executive
389
salaries
| ₹0.9 L/yr - ₹4.5 L/yr |
Jubilant Foods Works
Mahindra Holidays & Resorts
Oberoi Group of Hotels
Marriott International