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

SDE - 1

OYO
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, Algorithms, OOPS, OS, DBMS, Computer Networks
Tip
Tip

Tip 1 : Practice at least 75-100 questions from each topic (Arrays, Strings, DP, Trees, LinkedList, Graphs, Binary Search) 
Tip 2 : Do at least 2 good Projects related to the job profile you are applying for. It doesn't matter if you do it in a team or 
individually. Be prepared to be asked in-depth questions from the tech stack you used. You should Prepare for these 
questions very well
Tip 3 : Focus on Computer Science Fundamentals as well. These include topics like OOPS, OS, DBMS, and Computer 
Networks. Also, work on writing SQL Queries
Tip 4: Go through 25-30 Past Interview Experiences of the company you will apply to. These will help you understand there 
Interview process and type of questions/topics they ask

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Write the things you are confident about. They can ask any questions about the things you have put in your resume. 
Don't just add the things to make your resume look bigger.
Tip 2 : Resume should be written on one page only.
Tip 3 : You should have at least 2 good projects on your resume. Write a brief description of your projects along with the 
Tech stack you used.
Tip 4 : Your resume should contain some broad topics like - Education, Work Experience / Projects, Skills, Extra 
Curricular / Position Of Responsibilities.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 minutes
Interview date20 Aug 2019
Coding problem1

It had 20 MCQs and 1 coding question. Total marks were 161 out of which 130 were of 1 coding problem and the rest of 20 MCQs. All the eligible students (Having CGPA above 7) took part in this and it was held in Computer Lab from 10 AM - 12 PM.
30 students were selected for the F2F interviews out of 150.

1. Rat In A Maze

Easy
15m average time
85% success
0/40
Asked in companies
Samsung R&D InstituteDeutsche BankMakeMyTrip

You are given a starting position for a rat which is stuck in a maze at an initial point (0, 0) (the maze can be thought of as a 2-dimensional plane). The maze would be given in the form of a square matrix of order 'N' * 'N' where the cells with value 0 represent the maze’s blocked locations while value 1 is the open/available path that the rat can take to reach its destination. The rat's destination is at ('N' - 1, 'N' - 1). Your task is to find all the possible paths that the rat can take to reach from source to destination in the maze. The possible directions that it can take to move in the maze are 'U'(up) i.e. (x, y - 1) , 'D'(down) i.e. (x, y + 1) , 'L' (left) i.e. (x - 1, y), 'R' (right) i.e. (x + 1, y).

Note:
Here, sorted paths mean that the expected output should be in alphabetical order.
For Example:
Given a square matrix of size 4*4 (i.e. here 'N' = 4):
1 0 0 0
1 1 0 0
1 1 0 0
0 1 1 1 
Expected Output:
DDRDRR DRDDRR 
i.e. Path-1: DDRDRR and Path-2: DRDDRR

The rat can reach the destination at (3, 3) from (0, 0) by two paths, i.e. DRDDRR and DDRDRR when printed in sorted order, we get DDRDRR DRDDRR.
Problem approach

I applied BFS in the maze to find the path. 
1. I started from the source cell and applied BFS. 
2. maintain a queue to store the coordinates of the matrix and initialize it with the source cell
3. we also need to store if the cell is already visited or not.
4. Return if the destination coordinates have reached.

Try solving now
02
Round
Easy
Face to Face
Duration60 minutes
Interview date20 Aug 2019
Coding problem2

The interviewer was very friendly. The round begin with the usual introduction and then he asked me 3 DS/Algo questions.
He asked me to write the code of both the questions and check the approach with some edge cases. After these 3 questions, he asked me some basic questions about Paging, Deadlocks, and Indexing.

This round lasted around an hour. 21 students were selected for the second round.

1. Sort 0 1 2

Easy
22m average time
0/40
Asked in companies
Expedia GroupWalmartHCL Technologies

You have been given an integer array/list(ARR) of size 'N'. It only contains 0s, 1s and 2s. Write a solution to sort this array/list.

Note :
Try to solve the problem in 'Single Scan'. ' Single Scan' refers to iterating over the array/list just once or to put it in other words, you will be visiting each element in the array/list just once.
Problem approach

I gave him a 3 pointer approach for this. the first pointer will be at the 0th position of the array, the second will be on position 1 and the 3rd pointer will be on the first 0 or 1 from the right side. now continue iterating the array and sort till the first pointer is less than the third pointer

Try solving now

2. LCA - Lowest Common Ancestor

Hard
40m average time
70% success
0/120
Asked in companies
AmazonDell TechnologiesDeutsche Bank

The lowest common ancestor (LCA) is a concept in graph theory and computer science.

Let ‘T’ be a rooted tree with ‘N’ nodes. The lowest common ancestor is defined between two nodes, ‘u’ and ‘v’, as the lowest node in ‘T’ that has both ‘u’ and ‘v’ as descendants (where we allow a node to be a descendant of itself). - Wikipedia

For the given tree, The LCA of nodes 5 and 8 will be node 2, as node 2 is the first node that lies in the path from node 5 to root node 1 and from node 8 to root node 1.

Path from node 5 to root node looks like 5 → 2 → 1.

Path from node 8 to root node looks like 8 → 6 → 2 → 1.

Since 2 is the first node that lies in both paths. Hence LCA will be 2.

Given any two nodes ‘u’ and ‘v’, find the LCA for the two nodes in the given Tree ‘T’.

Note: For each test case, the tree is rooted at node 1.

Problem approach

It straight a forward question to find the LCA of binary tree

Try solving now
03
Round
Hard
Face to Face
Duration70 minutes
Interview date20 Aug 2019
Coding problem2

After the introduction part, he asked me a DS question.

1. Painter's Partition Problem

Moderate
25m average time
75% success
0/80
Asked in companies
OYOHSBCPayPal

Given an array/list of length ‘n’, where the array/list represents the boards and each element of the given array/list represents the length of each board. Some ‘k’ numbers of painters are available to paint these boards. Consider that each unit of a board takes 1 unit of time to paint.


You are supposed to return the area of the minimum time to get this job done of painting all the ‘n’ boards under a constraint that any painter will only paint the continuous sections of boards.


Example :
Input: arr = [2, 1, 5, 6, 2, 3], k = 2

Output: 11

Explanation:
First painter can paint boards 1 to 3 in 8 units of time and the second painter can paint boards 4-6 in 11 units of time. Thus both painters will paint all the boards in max(8,11) = 11 units of time. It can be shown that all the boards can't be painted in less than 11 units of time.


Problem approach

I was not able to solve this DS question

Try solving now

2. Puzzle Question

There is a room with a door (closed) and three light bulbs. Outside the room, there are three switches, connected to the bulbs. You may manipulate the switches as you wish, but once you open the door you can’t change them. Identify each switch with its bulb. All bulbs are in working condition.
 

Problem approach

Tip 1 : Be confident and ask questions from the interviewer if you are stuck anywhere
Tip 2 : Ask all the constraints and think of edge cases before committing the solution
Tip 3 : Start with Brute force and then start optimizing code

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