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

SDE - 1

OLX Group
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
From the first semester of my B.tech I started doing CP because my college has a great coding environment. I started doing HackerEarth till the first sem end then I started doing CodeChef because one of my friends suggested me and from there I start enjoying CP. My 3rd sem goes in web development and codeforces and from 4th sem onward I started doing leetcode and interviewbit as internship season is near. I had completed interviewbit in the 4th sem and unluckily I didn't get intern but from that point, I started leetcode seriously till 6th sem and finally got offered in OLX.
Application story
This company visits our campus and everyone with CGPA above 7 are eligible to give Online assessment.
Why selected/rejected for the role?
I was selected for the role because my first approach was also very basic and when the interviewer asked me to optimize it I was always able to give an optimized solution and in this way, he was impressed with my explanation.
Preparation
Duration: 6 months
Topics: Dynamic programming, Graph, Tree, OOPS, DBMS, Operating system, Computer network, DSA
Tip
Tip

Tip 1 : Focus on the concept not on the number of questions
Tip 2 : Must do Development even a simple html, css, and javascript project can work.
Tip 3 : Must do the most asked and most liked questions.
Tip 4 : First, Solve the question by yourself, then jump for other's solutions

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

Tip 1 : Must know everything in the resume(don't put false things)
Tip 2 : Not more than 1 page
Tip 3 : Highlight your job-related achievement and experience.

Interview rounds

01
Round
Medium
Online Coding Test
Duration60 minutes
Interview date12 Aug 2022
Coding problem2

Timming was around 2 PM
I was alone in the room
Interviewer was very supportive and humble

1. Delete Node In A Linked List

Easy
15m average time
80% success
0/40
Asked in companies
AdobeCIS - Cyber InfrastructureDell Technologies

You are given a Singly Linked List of integers and a reference to the node to be deleted. Every node of the Linked List has a unique value written on it. Your task is to delete that node from the linked list.

A singly linked list is a linear data structure in which we can traverse only in one direction i.e. from Head to Tail. It consists of several nodes where each node contains some data and a reference to the next node.

Note:

• The reference to the head of the linked list is not given.
• The node to be deleted is not a tail node.
• The value of each node in the Linked List is unique.
• It is guaranteed that the node to be deleted is present in the linked list.

A sample Linked List-

singly_linkedlist

Problem approach

Copy data of the next node to the current node
It's clear that The task question is wrong. You cannot delete the node.
Basically, instead of ONLY deleting the provided node we are not just doing it but CORRUPT the next node. It's a bad question wording (without clarification about options) and a bad solution. In my opinion, the correct answer for the interview is: "You CANNOT do this by having the node reference only. BUT we can make very similar operation by corrupting the next node. Although it's possible I don't recommend this solution for production applications.

Try solving now

2. Jump Game

Moderate
15m average time
85% success
0/80
Asked in companies
Deutsche BankGoldman SachsAmazon

You have been given an array 'ARR' of ‘N’ integers. You have to return the minimum number of jumps needed to reach the last index of the array i.e ‘N - 1’.


From index ‘i’, we can jump to an index ‘i + k’ such that 1<= ‘k’ <= ARR[i] .


'ARR[i]' represents the maximum distance you can jump from the current index.


If it is not possible to reach the last index, return -1.


Note:
Consider 0-based indexing.
Example:
Consider the array 1, 2, 3, 4, 5, 6 
We can Jump from index 0 to index 1
Then we jump from index 1 to index 2
Then finally make a jump of 3 to reach index N-1

There is also another path where
We can Jump from index 0 to index 1
Then we jump from index 1 to index 3
Then finally make a jump of 2 to reach index N-1

So multiple paths may exist but we need to return the minimum number of jumps in a path to end which here is 3.
Problem approach

1)Initialize a variable reach to 0, which represents the farthest index that can be reached so far.
2)Loop through the array nums and for each index i, do the following:
a. If i is greater than reach or reach is greater than or equal to nums.length - 1, break the loop as it means 
reaching the last index is not possible.
b. Update the value of reach as the maximum of reach and i + nums[i].
3)Return reach >= nums.length - 1, which means that the last index can be reached or not.

Try solving now
02
Round
Medium
Video Call
Duration65 minnutes
Interview date13 Aug 2022
Coding problem2

Timing was around 10AM.
I was alone in the room.
Interviewer was very good and supportive.

1. M - Coloring Problem

Easy
15m average time
85% success
0/40
Asked in companies
SquadstackUberSamsung

You are given an undirected graph with N nodes in the form of an adjacency matrix. You are also given an integer M.

Your task is to find if you can color the vertices of the graph using at most M colors such that no two adjacent vertices are of the same color.

For example:

If the given adjacency matrix is:
[0 1 0]
[1 0 1]
[0 1 0] and M = 3.

The given adjacency matrix tells us that node 1 is connected to node 2 and node 2 is connected to node 3. 

So if we color vertex 1 with ‘red’, vertex 2 with ‘blue’, and vertex 3 with ‘red’, it is possible to color the given graph with two colors which is less than or equal to M.
Problem approach

1)Consider three pointers low = 0, mid = 0, high = nums.size() - 1

2)The algorithm ensures that at any point, every element before low is 0, every element after high is 2, every element in between are either 0, 1 or 2 i.e. unprocessed.

3)We'll use mid pointer to traverse and check the array elements i.e. while(mid <= high). Three cases are possible:

a) nums[mid] == 0 In this case swap(nums[low], nums[mid]) and increment both low and mid pointer i.e. 
low++ mid++

b) nums[mid] == 1 In this case mid++

c) nums[mid] == 2 In this case swap(nums[mid], nums[high]) and decrement high pointer i.e. high--

Try solving now

2. Product Of Array Except Self

Easy
26m average time
0/40
Asked in companies
IntuitQualcommFacebook

You have been given an integer array/list (ARR) of size N. You have to return an array/list PRODUCT such that PRODUCT[i] is equal to the product of all the elements of ARR except ARR[i]

 Note :
Each product can cross the integer limits, so we should take modulo of the operation. 

Take MOD = 10^9 + 7 to always stay in the limits.
Follow up :
Can you try solving the problem in O(1) space?
Problem approach

1) We are required to solve this problem without using the division operator. We can do this by calculating two arrays pre and suf where pre[i] contains product of all nums[j] such that j <= i, and suf[i] contains product of all nums[j] such that j >= i.

2) Finally, the resulting array ans can be calculated as ans[i] = pre[i-1] * suf[i+1] which is product of all elements with index less than i multiplied by product of all elements with index greater than i. This is essentially equal to product of array except self at each index.

Try solving now
03
Round
Medium
HR Round
Duration25 minutes
Interview date14 Aug 2022
Coding problem1

Timing was around 10AM.
I was alone in the room.
Interviewer was very humble and generous.

1. Basic HR Questions

Tell me about yourself?

Was there any point in your career where you made any mistake?

Why do you want to work for our company?

Why should we hire you?

What are your hobbies?

Problem approach

Tip 1 : Do not ask the interviewer what he wants to know about you. You may be asking genuinely, but that just 
sounds rude.
Tip 2 : Do not speak what is already there in the resume. The interviewer wants to know what they have not 
seen on the resume. And do not speak about anything personal.
Tip 3 : Introduce yourself by including certain adjectives like problem-solving, innovation and tech-savvy, 
creative, quick learner, etc. that best describe you in your professional life to boost your chances.

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 | 3 problems
Interviewed by OLX Group
1725 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by OLX Group
793 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by OLX Group
803 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by OLX Group
708 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