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

SDE - 1

OYO
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
I did not like this coding thing at all until my school life, but it was an additional subject in class 12, and that is when I eventually started to like it. I then took admission to B.Tech in Computer Science. I was admitted to NIT, Bhopal, and practiced DSA from the very first year of college. Overall, it has been an exciting journey so far.
Application story
I received a message in my Telegram group about the company visiting our campus to hire SDE interns. Since it was the peak season for hiring, I was sure I would apply for it. I started preparing accordingly (DSA and some web development basics).
Why selected/rejected for the role?
I was selected because my answers were up to the mark, and he was convinced. Overall, I succeeded in conveying my value for the post.
Preparation
Duration: 2 months
Topics: Data Structures, System Design, Graphs, OOPS, Advance Data Structures
Tip
Tip

Tip 1: For companies like Codenation, you need to be great at competitive programming, as the online test is very difficult to crack.
Tip 2: Focus on problem solving during the final months of interview preparation.
Tip 3: Try to have at least three flagship projects in at least two different domains.

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

Tip 1: Keep the resume clean with a good text-to-space ratio.
Tip 2: Don't mention technologies that you have only limited knowledge of, as it can backfire if the interviewer is proficient in that technology.

Interview rounds

01
Round
Hard
Online Coding Test
Duration90 minutes
Interview date3 Jan 2019
Coding problem2

The test was from 10 PM to 11:30 PM. Since we had to take the test from home, the timing was not uncomfortable for me. The test was conducted on HackerRank. Personally, I find HackerRank a better testing platform than others like AMCAT or Mettl.

1. Minimum Fountains

Easy
10m average time
80% success
0/40
Asked in companies
BNY MellonUberAdobe

There is a one-dimensional garden of length 'N'. On each of the positions from 0 to 'N', there is a fountain, and this fountain’s water can reach up to a certain range as explained further. In other words, there are 'N' + 1 fountains located at positions 0, 1, 2, 3, …. 'N' which can be activated in the garden.

You are given an integer 'N' and an array/list 'ARR' of length 'N' + 1, where each index of the array denotes the coverage limit of a particular fountain.

A fountain at index 'i' can water the area ranging from the position 'i' - 'ARR'['i'] to 'i' + 'ARR'['i'].

Your task is to find the minimum number of fountains that have to be activated such that the whole garden from position 0 to 'N' has access to the water from at least some fountain.

Note:

1. 0-based indexing is used in the array.
2. We only care about the garden from 0 to 'N' only. So if i - 'ARR'['i'] < 0 or i + 'ARR'['i'] > 'N', you may ignore the exceeding area.
3. If some fountain covers the garden from position 'A' to position 'B', it means that the water from this fountain will spread to the whole line segment with endpoints 'A' and 'B'.
Try solving now

2. Count Inversions

Moderate
40m average time
55% success
0/80
Asked in companies
Hewlett Packard EnterpriseBNY MellonGrab

For a given integer array/list 'ARR' of size 'N' containing all distinct values, find the total number of 'Inversions' that may exist.

An inversion is defined for a pair of integers in the array/list when the following two conditions are met.

A pair ('ARR[i]', 'ARR[j]') is said to be an inversion when:

1. 'ARR[i] > 'ARR[j]' 
2. 'i' < 'j'

Where 'i' and 'j' denote the indices ranging from [0, 'N').
Problem approach

I applied Binary search

Try solving now
02
Round
Easy
Telephonic
Duration30 minutes
Interview date3 Jan 2019
Coding problem1

The interview was at 12 noon, and it was a resume walk-through round. The interview was supposed to be a Google Meet call, but due to a weak internet connection on the interviewer's end, he called me directly on my phone. He had my resume open and asked me to walk him through the projects I had worked on. His main interest was in my web development project. Since the project is live, he was able to use it and was quite impressed with my work. He also discussed my tech stack and asked a few questions related to JavaScript to assess my proficiency. The questions he asked were about explaining Asynchronous Programming in JavaScript and Promises in JavaScript.

1. Minimum Number Of Operations To Reach X.

Moderate
25m average time
60% success
0/80
Asked in companies
OYOAmerican ExpressIntuit

You have been given an array/list ‘ARR’ of integers consisting of ‘N’ integers. You are also given an integer ‘X’. In one operation, you can either remove the leftmost or the rightmost element and add that to the sum of removed elements so far. Your task is to return the minimum number of operations such that the sum of removed elements becomes exactly ‘X’. If it is not possible return -1.

For Example :
Let’s say you have an array/list [1, 3, 5, 3] and ‘X’ is 7. 
We can first remove the rightmost element i.e. 3. The array becomes [1,3,5]. In the next step, we can remove the leftmost element i.e 1. The array becomes [3,5] and the sum of removed elements so far becomes 4. In the next step, we can remove the leftmost element i.e 3. The array becomes [5] and the sum of removed elements so far is 7. We have reached our target X i.e 7. Therefore the minimum number of operations to reach ‘X’ is 3.
Try solving now
03
Round
Hard
Video Call
Duration90 minutes
Interview date3 Jan 2019
Coding problem1

This interview was at 10 a.m. in the morning and was conducted by an SDE 3 from the company, who had an excellent background in competitive coding. The interview started with me introducing myself.

1. Count distinct Bitwise OR of all subarrays

Easy
10m average time
90% success
0/40
Asked in companies
Samsung R&D InstituteOYOOla

You are given an array consisting of N positive integers, your task is to count the number of distinct possible values that can be obtained by taking the bitwise OR of the elements of all possible subarrays of the given array

Note:

1) A subarray is a part of the array which is contiguous (i.e. elements in the original array occupy consecutive positions) and inherently maintains the order of elements. For example, the subarrays of the array {1, 2, 3} are {1}, {1, 2}, {1, 2, 3}, {2}, {2, 3}, and {3}.
2) Bitwise OR operation takes two numbers and performs OR operation on every bit of those two numbers. For example, consider two numbers 2 and 3 their bitwise OR will be 3. Because the binary representation of 2 is 10 and the binary representation of 3 is 11. And OR of 10 and 11 will be 11 which evaluates to 3.
3) The array may contain duplicate elements.
Problem approach

I had read this article a few days before the interview, so I was aware of the efficient approach. However, I started by explaining the naive O(N^3) solution. The interviewer asked me to optimize the approach, so I then presented the approach I had read in the article. The interviewer asked me to code the solution, which I did.

Try solving now

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
1063 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by OYO
837 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