OYO interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

OYO
upvote
share-icon
4 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3
Topics: Data Structures and Algorithms, DBMS, Operating Systems, Computer Networks, OOPs
Tip
Tip

Tip 1 : Practice sufficient amount of questions for each topic
Tip 2 : Make notes for cs fundamentals, it reduces a lot of time for revision
Tip 3 : Note down the algorithms and questions that you couldn't solve in first attempt.

Application process
Where: Campus
Eligibility: 7.0 CGPA
Resume Tip
Resume tip

Tip 1 : Make sure the resume is neat and tidy and must be a single page resume for freshers.
Tip 2 : You should have enough knowledge about the things you mention in the resume.

Interview rounds

01
Round
Hard
Online Coding Interview
Duration90 minutes
Interview date21 Aug 2021
Coding problem3

The test was conducted in the morning at around 9:00 AM. Three problems were given, all based on data structures and algorithms.

1. Excel Column Number

Easy
23m average time
0/40
Asked in companies
OYODirectiGoldman Sachs

You have been given a column title as appears in an Excel sheet, return its corresponding column number.

For example:
A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28 
...
Problem approach

You have run a loop to convert the number. In every step take modulus of n by 26 which is mapped to the required character. if(n%26==0) Required letter is Z else (n%26-1)+'A' and n/=26. Continue till n!=0;

Try solving now

2. Smallest Subarray With K Distinct Elements

Easy
20m average time
80% success
0/40
Asked in companies
IntuitUberGoldman Sachs

Given an array 'A' consisting of 'N' integers, find the smallest subarray of 'A' containing exactly 'K' distinct integers.

Note :
If more than one such contiguous subarrays exist, consider the subarray having the smallest leftmost index.

For example - if A is [1, 2, 2, 3, 1, 3 ] and k = 2 then the subarrays: [1,2], [2,3], [3,1], [1,3] are the smallest subarrays containing 2 distinct elements. In this case, we will consider the starting and ending index of subarray [1,2] i.e. 0 and 1.
Try solving now

3. Bipartite Graph

Moderate
0/80
Asked in companies
ArcesiumDunzoCIS - Cyber Infrastructure

Given an undirected graph of ‘V’ vertices (labeled 0,1,..., V-1) and ‘E’ edges . Your task is to check whether the graph is bipartite or not.

A bipartite graph is a graph whose vertices can be divided into two sets such that each edge of the graph connects one vertex from the first set and another vertex from the second set.
We can also define a bipartite graph as a graph which can be colored using two colors such that no two adjacent vertices have the same color. 

For example: 
Input: 
4 4
0 1
0 2
1 3
2 3

An undirected graph to the above input is shown below:

In the given input, the number of vertices is 4, and the number of edges is 4.
In the input, following the number of vertices and edges, a list of pairs of numbers is given where each pair (u, v) denotes an edge between vertex u and v.
As per the input, there is an edge between vertex 0 and vertex 1.
The vertices 0 and 2 have an edge between them.

The vertices 1 and 3 have an edge between them.
The vertices 2 and 3 have an edge between them.

As the graph can be colored using two colors, and no adjacent vertices share the same color, the graph is bipartite. 
Problem approach

Tip 1 : Read DSA daily

Tip 2 : Some questions are this are the same copy of one you practised earlier. So practise helps you very much for interview questions of DSA

Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date22 Aug 2021
Coding problem2

It was conducted at around 12:00 PM on Cisco webex. Two questions based on DSA were asked

1. House Robber II

Moderate
15m average time
80% success
0/80
Asked in companies
UberIntuitMicrosoft

Mr. X is a professional robber planning to rob houses along a street. Each house has a certain amount of money hidden.


All houses along this street are arranged in a circle. That means the first house is the neighbour of the last one. Meanwhile, adjacent houses have a security system connected, and it will automatically contact the police if two adjacent houses are broken into on the same night.


You are given an array/list of non-negative integers 'ARR' representing the amount of money of each house. Your task is to return the maximum amount of money Mr. X can rob tonight without alerting the police.


Note:
It is possible for Mr. X to rob the same amount of money by looting two different sets of houses. Just print the maximum possible robbed amount, irrespective of sets of houses robbed.


For example:
(i) Given the input array arr[] = {2, 3, 2} the output will be 3 because Mr X cannot rob house 1 (money = 2) and then rob house 3 (money = 2), because they are adjacent houses. So, he’ll rob only house 2 (money = 3)

(ii) Given the input array arr[] = {1, 2, 3, 1} the output will be 4 because Mr X rob house 1 (money = 1) and then rob house 3 (money = 3).

(iii) Given the input array arr[] = {0} the output will be 0 because Mr. X has got nothing to rob.
Problem approach

It was a dynamic programming based problem. First I explained the recursive solution then applied memoization to the solution.

Try solving now

2. Next Greater Element

Moderate
20m average time
90% success
0/80
Asked in companies
PayPalSamsungDunzo

You are given an array arr of length N. You have to return a list of integers containing the NGE(next greater element) of each element of the given array. The NGE for an element X is the first greater element on the right side of X in the array. Elements for which no greater element exists, consider the NGE as -1.

For Example :

If the given array is [1, 3, 2], then you need to return [3, -1, -1]. Because for 1, 3 is the next greater element, for 3 it does not have any greater number to its right, and similarly for 2.
Problem approach

This was a straight problem based on stack. First I used brute force method to solve the problem and explained its time complexity. Then explained optimised solution and explained the algorithm through given test cases

Try solving now
03
Round
Easy
Video Call
Duration75 minutes
Interview date22 Aug 2021
Coding problem2

This was a managerial round where a Senior Manager took the interview, explained about work culture etc. Two problems were asked based on DSA.

1. Rearrange Linked List

Moderate
22m average time
80% success
0/80
Asked in companies
AmazonIntuitOptum

You have been given a singly Linked List in the form of 'L1' -> 'L2' -> 'L3' -> ... 'Ln'. Your task is to rearrange the nodes of this list to make it in the form of 'L1' -> 'Ln' -> 'L2' -> 'Ln-1' and so on. You are not allowed to alter the data of the nodes of the given linked list.

For example:
If the given linked list is 1 -> 2 -> 3 -> 4 -> 5 -> NULL.

Then rearrange it into 1 -> 5 -> 2 -> 4 -> 3 -> NULL. 
Problem approach

I first used an stack to store alternative elements of linked and then performed the rearrangement.

Try solving now

2. First Missing Positive

Moderate
18m average time
84% success
0/80
Asked in companies
DunzoHikeSamsung

You are given an array 'ARR' of integers of length N. Your task is to find the first missing positive integer in linear time and constant space. In other words, find the lowest positive integer that does not exist in the array. The array can have negative numbers as well.

For example, the input [3, 4, -1, 1] should give output 2 because it is the smallest positive number that is missing in the input array.

Problem approach

First used brute force using sort then provided optimised solution

Try solving now
04
Round
Easy
HR Round
Duration30 minutes
Interview date22 Aug 2021
Coding problem1

This was taken by a HR member explaining about work culture, teams, tech stack, locations etc.

1. Basic HR Questions

  • Tell me about yourself
  • What are your hobbies?
  • What are your strength and weakness?
  • What do you know about OYO and its work culture?
  • Why do you want to join OYO
Problem approach

Tip 1 : Stay confident and honest
Tip 2 : Show a positive attitude
Tip 3 : Keep a slight and constant smile

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4898 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by OYO
0 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by OYO
1064 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by OYO
838 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58238 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes