OYO Rooms Interview Experience | Freshers | SDE | On Campus
Round 1: (Online Test)
Oyo Rooms visited our campus in Jan 2019. The first round was an online test conducted on hackerearth. There were 2 sections. The 1st section contained 25 MCQs based on OS, DBMS, Data Structures, Aptitude. The second section contained 2 coding questions:
- You are given a list of n-1 integers and these integers are in the range of 1 to n. There are no duplicates in list. One of the integers is missing in the list. Write an efficient code to find the missing integer. Solution: Link
- In share trading, a buyer buys shares and sells on a future date. Given the stock price of n days, the trader is allowed to make at most k transactions, where a new transaction can only start after the previous transaction is complete, find out the maximum profit that a share trader could have made. Solution: Link
Round 2: (F2F Round)
- Given a linked list where in addition to the next pointer, each node has a child pointer, which may or may not point to a separate list. These child lists may have one or more children of their own, and so on, to produce a multilevel data structure, as shown in the below figure. You are given the head of the first level of the list. Flatten the list so that all the nodes appear in a single-level linked list. You need to flatten the list in a way that all nodes at first level should come first, then nodes of the second level, and so on. Solution: Link
- Given sum of digits a and sum of square of digits b. Find the smallest number with given sum of digits and sum of the square of digits. The number should not contain more than 100 digits. Print -1 if no such number exists or if the number of digits is more than 100. Solution: Link
- Given an array of integers, the task is to find the maximum absolute difference between the nearest left and the right smaller element of every element in the array.Note: If there is no smaller element on the right side or left side of any element then we take zero as the smaller element. For example for the leftmost element, the nearest smaller element on the left side is considered as 0. Similarly, for rightmost elements, the smaller element on the right side is considered as 0. Solution: Link
Round 3: (F2F Round)
- Given arrival and departure times of all trains that reach a railway station, find the minimum number of platforms required for the railway station so that no train waits. We are given two arrays which represent arrival and departure times of trains that stop. Solution: Link
- Implementation of the dictionary data structure.
- Implementation of the trie tree data structure.
- Implementation of the hashmap data structure.
- Difference between Mutex and Semaphores.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course. In case you are prepared, test your skills using TCS, Wipro, Amazon. Google and Microsoft Test Serieses.