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

Software Developer

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

Interview preparation journey

expand-icon
Preparation
Duration: 4 months
Topics: Data Structures, Algorithms, SQL, Aptitude, OOPS
Tip
Tip

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

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

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Interview rounds

01
Round
Easy
Face to Face
Duration60 minutes
Interview date11 May 2015
Coding problem4

Technical round with questions on DSA and OOPS mainly.

1. Find Missing Number In String

Moderate
15m average time
85% success
0/80
Asked in companies
AdobeOLX GroupAmazon

You had a sequence of consecutive nonnegative integers. You appended all integers at the end of each other to form a string ‘S’ without any separators. While appending each integer in a string, you forgot to append exactly one integer from the sequence. Now all the integers from a string and you don’t know which integer you have missed.

For example sequence 11, 12, 13 may form a string (without any separators) “1113” if you miss 12.

Your task is to find the missing number in the string such that it is possible to obtain a sequence of consecutive non-negative integers from the given string. If more than one missing integer is present or all the integers are already present or if the string is not valid then the answer will be -1 for all such cases.

Note:
1. The string consists of only digits 0 to 9.
2. The numbers will have no more than six digits. 
Problem approach

XOR approach can be used to solve this question in an efficient manner. The following property of XOR can be used :
1. If x1^x2^…xn = a and x1^x2^..xn-1 = b , then a^b = xn
Steps:
1. Declare two variables a= 0 and b = 0
2. Calculate the xor of numbers from 1 to n and store them in a i.e. 1^2^…n = a. 
3. Now traverse the array from start to end.
4. For every index i update b as b = b ^ arr[i]
5. Return the missing number as a ^ b. 
Time Complexity : O(N)
Space complexity : O(1)

Try solving now

2. OOPS Question

Difference between constructor and destructor

Problem approach

1. Constructor helps to initialize the object of a class whereas destructor is used to destroy the instances.
2. Constructor is declared as Classname( arguments if any ){Constructor’s Body } whereas destructor is declared as ~ ClassName( no arguments ){ }.
3. Constructor can either accept arguments or not while destructor can’t have any arguments.
4. A constructor is called when an instance or object of a class is created.Destructor is called while object of the class is freed or deleted.
5. Constructor is used to allocate the memory to an instance or object while destructor is used to deallocate the memory of an object of a class.
6. Constructor can be overloaded while destructor can’t be overloaded.
7. The constructor’s name is same as the class name. In destructor, its name is also same as the class name preceded by the tiled (~) operator.

3. Technical Question

Difference between session and cookie

Problem approach

1. A session stores the variables and their values within a file in a temporary directory on the server. Cookies are stored on the user's computer as a text file.
2. The session ends when the user logout from the application or closes his web browser. Cookies end on the lifetime set by the user.
3. Session can store an unlimited amount of data. Cookies can store only limited data.
4. Session can store as much data as we want within a session, but there is a maximum memory limit, which a script can use at one time, and it is 128 MB. The maximum size of the browser's cookies is 4 KB.
5. We need to call the session_start() function to start the session. We don't need to call a function to start a cookie as it is stored within the local computer.
6. In PHP, to set a session data, the $_SESSION global variable is used. In PHP, to get the data from cookies, the $_COOKIE global variable is used.

4. Technical Question

What is memcached?

Problem approach

Memcached is an open source distributed memory caching system. It is used for speeding up dynamic web applications by reducing database load. Memcached stores data based on key-value pairs for small arbitrary strings or objects including:
Results of database calls
API calls
Page rendering
Memcached is made up of four main components.
Client software — Which is given a list of available Memcached servers.
A client-based hashing algorithm — Chooses a server based on the “key”.
Server software — Stores values and their keys into an internal hash table.
LRU — Determines when to throw out old data or reuse memory.

02
Round
Easy
Face to Face
Duration60 minutes
Interview date11 May 2015
Coding problem3

Technical round with questions on DBMS mainly.

1. DBMS Question

What are indexes in MYSQL?

Problem approach

A database index is a data structure that improves the speed of operations in a table. Indexes can be created using one or more columns, providing the basis for both rapid random lookups and efficient ordering of access to records.
While creating index, it should be taken into consideration which all columns will be used to make SQL queries and create one or more indexes on those columns. Practically, indexes are also a type of tables, which keep primary key or index field and a pointer to each record into the actual table.

2. DBMS Question

Design a database schema for a chat application where user can send message to an individual or in group.

Problem approach

Tip 1: Entities like user and message are the main entities to store users’ and messages’ details. Columns in the user table would be user related attributes like first_name, last_name, etc. Columns in the message table would be subject, message_body, create_date and expiry_date. 
Tip 2: Another table in this data model could be message_recipient. It would hold the mapping between messages and their recipients. Thus the recipient_id column in this table signifies recipients’ ids, and this column refers to the id column of user table. When a message is sent to one recipient, one record will be inserted into this table with the recipient’s id in the recipient_id column.

3. Puzzle

You are provided with 8 identical balls and a measuring instrument. 7 of the eight balls are equal in weight and one of the eight given balls is defective and weighs less. The task is to find the defective ball in exactly two measurements.

Problem approach

Step 1: Divide the balls into three categories(C1, C2 and C3).
Let C1 consist of balls B1, B2 and B3.
Let C2 consist of balls B4, B5 and B6.
Let C3 consist of balls B7 and B8.

Step 2: Put C1 on one side of the weighing machine and C2 on the other.
This can give rise to 3 conditions:
Condition 1: C1 equals C2
Condition 2: C1 < C2
Condition 3: C1 > C2

Now let’s analyse the three conditions to find the defective ball:
Condition 1: If C1 is equal C2, then C3 has the defective ball. Now measure the weights of ball B7 and B8.
If B7 < B8, B7 is defective
If B7 > B8, B8 is defective.
Condition 2: If C1 < C2, then C1 has the defective ball. Now measure the weights of ball B1 and B2.
If B1 equals B2, B3 is defective.
If B1 < B2, B1 is defective.
If B1 > B2, B2 is defective.
Condition 3: If C1 > C2, then C2 has the defective ball. Now measure the weights of ball B4 and B5.
If B4 equals B5, B6 is defective.
If B4 < B5, B4 is defective.
If B4 > B5, B5 is defective.

03
Round
Easy
HR Round
Duration30 minutes
Interview date11 May 2015
Coding problem1

This was a typical managerial round.

1. Basic HR Questions

Q1. Why do you want to join OLX?
Q2. What difficulties have you faced ?
Q3. How is the Employee hierarchy in your current organization. Whom do you report to ?
Q4. How much is the web traffic on your site etc?

Problem approach

Tip 1 : The cross questioning can go intense some time, think before you speak.

Tip 2 : Be open minded and answer whatever you are thinking, in these rounds I feel it is important to have opinion.

Tip 3 : Context of questions can be switched, pay attention to the details. It is okay to ask questions in these round, like what are the projects currently the company is investing, which team you are mentoring. How all is the work environment etc.

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 | 5 problems
Interviewed by OLX Group
1025 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by OLX Group
1284 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 6 problems
Interviewed by OLX Group
861 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Developer
5 rounds | 14 problems
Interviewed by Microsoft
4029 views
1 comments
0 upvotes
company logo
Software Developer
6 rounds | 12 problems
Interviewed by SAP Labs
2912 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 3 problems
Interviewed by Amazon
1270 views
0 comments
0 upvotes